首页 > 技术文章 > 在hive下使用dual伪表

staryea 原文

[hive@nn1 ~]$ touch dual.txt
[hive@nn1 ~]$ echo 'X' >dual.txt
hive> load data local inpath '/home/hive/dual.txt' overwrite into table dual;
hive> select 'a' from dual;
OK
a
Time taken: 1.03 seconds, Fetched: 1 row(s)
hive>

推荐阅读