![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sql
yzybnote
这个作者很懒,什么都没留下…
展开
-
hive使用
1.hive中一次性使用命令: hive -e "select * from ldh_table limit 3"; 静默执行且保存一次性命令: hive -S -e "select * from ldh_table limit 3" 》 /temp/myfile 2.从文件中执行hive hive -f /path/file/myhive.sql 在hive shell中用 sou...原创 2019-08-15 20:44:06 · 209 阅读 · 0 评论 -
SQL常见用法
1.hive中顺序执行 : set mapred.job.queue.name=analytics; 2.清除表内容:truncate table ldh_mobile_new_detail; 3.上传本地文件到空表中 load data local inpath '///home/hadoop/my.txt' into table mytable; 4.新建表 (1)指定分隔符 cre...原创 2019-08-12 15:15:07 · 198 阅读 · 0 评论