Loading

clickhouse通过mysql建表

通过此方式可直接创建和mysql表结构一致的表

CREATE TABLE table_name
ENGINE = MergeTree
ORDER BY id AS
SELECT *
FROM mysql('host:port', 'db', 'table_name', 'user', 'password')
posted @ 2021-09-03 11:19  戒烟戒酒  阅读(534)  评论(0编辑  收藏  举报