clickhouse手记

概述:https://www.jianshu.com/p/350b59e8ea68

基础知识:https://www.jianshu.com/p/a5bf490247ea

列式储存数据库:https://www.oschina.net/p/clickhouse?hmsr=aladdin1e1

 

安装部署入门文档:https://clickhouse.tech/docs/zh/getting-started/install/

应用说明,常见问题: https://blog.csdn.net/gjggw123/article/details/107950122

DBeaver 可视化工具

下载:https://dbeaver.io/download/

 https://blog.csdn.net/weixin_39014602/article/details/106435931

clickhouse的可视化工具DBeaver:https://blog.csdn.net/weixin_39025362/article/details/105631540

DBeaver连接ClickHouse实操:https://blog.csdn.net/duketyson2009/article/details/98206721

ClickHouse 用户名密码设置: https://www.jianshu.com/p/e339336e7bb9

laravel clickhouse

https://github.com/esazykin/laravel-clickhouse

远程连接

https://www.msnao.com/2019/12/11/2441.html

https://www.cnblogs.com/qinshengfei/p/13660538.html

https://blog.csdn.net/zhangpeterx/article/details/95059059

 

clickhouse 操作:

1.CK中添加列:ALTER TABLE 表名称 ON 集群名称 ADD COLUMN 列名称 类型 DEFAULT 注解
eg:ALTER TABLE 表名称 ON 集群名称 ADD COLUMN lvl Int32 DEFAULT 'lvl'
2.CK中修改注释:alter table 表名称 ON 集群名称 COMMENT COLUMN 列名称 注解;
alter table adm_sch_d05_content_live_service_di_local ON 集群名称 COMMENT COLUMN `pv_sid` 'lvl';
3.CK中修改数据类型:ALTER table adm_sch_d05_content_live_service_di_local on 集群名称 MODIFY COLUMN `ord_dt` String;
ALTER table 表名称 ON 集群名称 MODIFY COLUMN 列名称 数据类型;
ALTER table adm_sch_d05_content_live_service_di on 集群名称 MODIFY COLUMN `ord_dt` String;
4.CK中删除列  alter table 表名称 ON 集群名称 drop column 列名称;
ALTER table adm_sch_d05_content_live_service_di_local on 集群名称  drop column `pv_sid`;
注意问题:
不可以修改列名称,CK中不支持修改列名称。
hive表中的日期为String类型到CK中不可以转为Date,会报错。必须为Sting.

 

https://blog.csdn.net/ganghaodream/article/details/111085006

https://stackoom.com/question/3NYwL/%E5%A6%82%E4%BD%95%E5%9C%A8Clickhouse%E4%B8%AD%E6%B7%BB%E5%8A%A0%E5%88%97

https://xbuba.com/questions/49944865

 

posted @ 2020-12-04 16:33  程序生(Codey)  阅读(222)  评论(0编辑  收藏  举报