mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 02:12:21 +00:00
10 lines
239 B
MySQL
10 lines
239 B
MySQL
|
drop table if exists test;
|
||
|
create table test
|
||
|
(
|
||
|
n1 UInt32,
|
||
|
n2 UInt32 alias murmurHash3_32(n1),
|
||
|
n3 UInt32 materialized n2 + 1
|
||
|
)engine=MergeTree order by n1;
|
||
|
insert into test select * from generateRandom() limit 10;
|
||
|
drop table test;
|