to_ck/初始化用户表.sql
2021-08-24 20:24:20 +08:00

15 lines
362 B
SQL

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