INSERT INTO table_name [ ( column [, ... ] ) ] query
INSERT INTO table_identifier [ partition_spec ] [ ( column_list ) ]{ VALUES ( { value | NULL } [ , ... ] ) [ , ( ... ) ] | query }
[ partition_spec ]: Partitioning column name and value Example: dt='2021-06-01'[ ( column [, ... ] ) ] : All the columns[table_name] | table_identifier: Table name[query]: A general Select query statementINSERT INTO orders SELECT * FROM new_orders;
INSERT INTO cities VALUES (1, 'China');
INSERT INTO nation (nationkey, name, regionkey, comment)VALUES (26, 'POLAND', 3, 'no comment');
INSERT INTO students PARTITION (student_id = 444444) SELECT name, address FROM persons WHERE name = 'dlc'
INSERT INTO students PARTITION (student_id = 11215017) (address, name) VALUES ('Shen zhen, China', 'tester')
Feedback