某公司有两个结构相同的表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: 第一章 大数据基础知识
举一反三
- 创建一个名为‘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语句