hive -e 时转义须要再加一个'

hive窗口中使用转义字符:html

select split(concat_ws('|','123','456','789'),'\\|')from dual;htm

参考it

http://jingyan.baidu.com/article/870c6fc32cf38eb03ee4be61.htmlselect

这种写法在hive -e 中执行时,须要改为:co

select split(concat_ws('|','123','456','789'),'\\\|')from dual;字符

相关文章
相关标签/搜索