mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-11 01:54:55 +00:00
1.1 KiB
1.1 KiB
slug | sidebar_position | sidebar_label | title |
---|---|---|---|
/en/sql-reference/table-functions/null | 53 | null function | null |
Creates a temporary table of the specified structure with the Null table engine. According to the Null
-engine properties, the table data is ignored and the table itself is immediately dropped right after the query execution. The function is used for the convenience of test writing and demonstrations.
Syntax
null('structure')
Parameter
structure
— A list of columns and column types. String.
Returned value
A temporary Null
-engine table with the specified structure.
Example
Query with the null
function:
INSERT INTO function null('x UInt64') SELECT * FROM numbers_mt(1000000000);
can replace three queries:
CREATE TABLE t (x UInt64) ENGINE = Null;
INSERT INTO t SELECT * FROM numbers_mt(1000000000);
DROP TABLE IF EXISTS t;
See also: