to_ck/初始化用户表.sql
2021-07-28 17:48:23 +08:00

15 lines
362 B
SQL

drop table if exists shanhai.user;
create table shanhai.user
(
`#reg_time` DateTime('UTC'),
`#account_id` String,
`svrindex` UInt16,
`#zone_offset` Int8 default 8,
`#server_time` DateTime('UTC') default now()
) ENGINE = ReplacingMergeTree()
PARTITION BY `svrindex`
order by `#account_id`