我已经创建了一个配置单元表,并且需要将子查询结果插入到该配置单元表中。以下是出现错误的子查询部分。
insert into ana.HQL_test SELECT distinct name, age_id AS age,CONCAT(RTRIM(LTRIM(FRST_NM)), ' ', RTRIM(LTRIM(LST_NM))) AS NAME,ETL,LVL AS UNT,LVL_2 AS OPS FROM test.T_HIST WHERE DEL <> 'D') USR
及以下是错误:
FAILED: ParseException line 7:19 missing EOF at ')' near ''D''
根据我的观察,它在某处缺少任何开括号。也许我做错了什么。请建议
谢谢