forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2.1 KiB
2.1 KiB
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