mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
8 lines
210 B
MySQL
8 lines
210 B
MySQL
|
drop table if exists test;
|
||
|
create table test (x UInt64) engine=Memory();
|
||
|
set insert_null_as_default=1;
|
||
|
insert into test select number % 2 ? NULL : 42 as x from numbers(2);
|
||
|
select * from test;
|
||
|
drop table test;
|
||
|
|