Help Center/ MapReduce Service/ Component Operation Guide (LTS)/ Using ClickHouse/ Common ClickHouse SQL Syntax/ INSERT INTO: Inserting Data into a Table
Updated on 2023-05-15 GMT+08:00
INSERT INTO: Inserting Data into a Table
This section describes the basic syntax and usage of the SQL statement for inserting data to a table in ClickHouse.
Basic Syntax
Example
-- Insert data into the test2 table. insert into test2 (id, name) values (1, 'abc'), (2, 'bbbb'); -- Query data in the test2 table. select * from test2; ┌─id─┬─name─┐ │ 1 │ abc │ │ 2 │ bbbb │ └───┴────┘
Parent topic: Common ClickHouse SQL Syntax
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.