SELECT ';'
-- 报错:sql task error: org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED:
--ParseException line 1:8 cannot recognize input near '<EOF>' '<EOF>' '<EOF>' in select clause
这是因为在hive中英文分号;无法识别和转义,要使用ASCII码来代替英文分号;,英文分号;使用 \073 表示
上面语句改为
select '\073'
--运行结果为;
1529

被折叠的 条评论
为什么被折叠?



