我正在尝试在蜂巢中执行查询并得到错误。我一遍又一遍地检查,但看不到任何问题。
CREATE view sta_v_clean_phrase_longtext (system, `function`, loglockmod, extinfo
, primarykey, foreignkey, flgprimkey, flgfrgnkey, ref_recn, text_line, copied,
inserted )
AS
SELECT system,
`function`,
loglockmod,
extinfo,
primarykey,
foreignkey,
flgprimkey,
flgfrgnkey,
ref_recn,
Concat_ws('', Collect_list(text_line))AS TEXT_LINE,
copied
FROM (SELECT system,
`function`,
loglockmod,
extinfo,
primarykey,
foreignkey,
flgprimkey,
flgfrgnkey,
ref_recn,
text_line,
copied
FROM phrase_longtext_orc_orc
WHERE primarykey IS NOT NULL
GROUP BY system,
`function`,
loglockmod,
extinfo,
primarykey,
foreignkey,
flgprimkey,
flgfrgnkey,
ref_recn,
text_line,
copied)
GROUP BY system,
`function`,
loglockmod,
extinfo,
primarykey,
foreignkey,
flgprimkey,
flgfrgnkey,
ref_recn,
text_line,
copied
ParseException行6:5无法识别'(''SELECT'附近的输入 joinSource中的“系统”
答案 0 :(得分:0)
为您的 TO_CHAR(date, 'YY')
保留别名,并在创建视图语句中显示额外列 subquery
,该别名在您选择的查询中不存在(我从查询下方删除了多余的列)。
inserted