某公司有两个结构相同的表A和B,现在想将两个表的数据合在一起放到C表中,并去掉重复的记录,以下那条HiveQL可以实现:
A: A:insert into table c (select * from A union all select * from B);
B: B:insert overwrite table c (select * from A union select * from B);
C: C:insert into c (select * from A union select * from B);
D: D:insert overwrite c (select * from A union all select * from B);
E: 第一章 大数据基础知识
A: A:insert into table c (select * from A union all select * from B);
B: B:insert overwrite table c (select * from A union select * from B);
C: C:insert into c (select * from A union select * from B);
D: D:insert overwrite c (select * from A union all select * from B);
E: 第一章 大数据基础知识
B
举一反三
- 创建一个名为‘Customers’的新表,同时要求新表中包含表‘clients’的记录,sql语句是( )。 A: Insert into customers B: Select * into customers from clients C: Select into customers from clients D: Insert into customers select * from clients E: Insert customers select * from clients
- 下面语句可以实现批量写入(写入记录数大于等于2)数据的是______。 A: INSERT INTO学生表VALUES(‘1001’,‘张杰’) B: SELECT * FROM学生表 C: INSERT INTO学生表 SELECT * FROM学生表2 D: INSERT INTO学生表 SELECT * FROM学生表
- 创建一个名为catt的新表,要求该表包含kehu表的所有记录,应使用的T-SQL语句是()。 A: SELECT * INTO catt WHERE FROM kehu B: SELECt * INTO catt FROM kehu C: INSERT INTO catt SELECT * FROM kehu D: INSERT INTO catt FROM SELECT * FROM kehu
- 创建一个名为"Customers"的新表,同时要求该表中包含表"clients"的所有记录,SQL语句是()。 A: SELECT * INTO customers FROM clients B: SELECT INTO customers FROM clients C: INSERT INTO customers SELECT * FROM clients D: INSERT customers SELECT * FROM client
- 以下能实现向表中添加数据功能的语句是( )。 A: INSERT INTO语句 B: INSERT……SELECT语句 C: SELECT……INTO语句 D: SELECT……FROM语句
内容
- 0
下面哪个语句不能实现向表中添加数据?() A: A INSERT INTO语句 B: B INSERT SELECT语句 C: C SELECT…INTO语句 D: D SELECT…From语句
- 1
要查询学生表的所有内容的正确语句是 A: select ? from 学生表 B: select * from 学生表 C: select % from 学生表 D: select all from 学生表
- 2
查询goods中所有记录。 A: select all from goods; B: select distinct from goods; C: select * from goods; D: select from goods;
- 3
创建一个名为'catt'的新表,要求该表包含'kehu'表的所有记录,应使用的SQL语句是( ) A: select * into catt where from kehu B: select * into catt from kehu C: select * from kehu insert into catt D: select * from kehu
- 4
SQL数据库中查询前3条记录的SQL语句是()。 A: select top 3 from table B: select * from table limit 3 C: select * from table limit 1,3 D: select * from table order 3