当前位置:网站首页>Update and delete operations in Clickhouse of data warehouse series
Update and delete operations in Clickhouse of data warehouse series
2022-06-09 08:45:00 【Lang Xiaolin】
Test data
select count(*) from system.columns where table='test_update';
select count(*) from test_update;
Specific deletion & Update implementation
grammar as follows :
ALTER TABLE <table_name> DELETE WHERE <filter>;
ALTER TABLE <table_name> UPDATE col1 = expr1, ... WHERE <filter>;
ALTER TABLE test_update UPDATE event_status_key=0 where event_status_key=22;
The command is executed asynchronously , You can view the table system.mutations To check whether the command has been executed .
Clickhouse The update operation has some limitations :
Index columns cannot be updated ;
Distributed tables cannot be updated ;
ALTER TABLE UPDATE/DELETE Distributed... Is not supported DDL, So you need to manually on each node in a distributed environment local To update / Delete data ;
Not suitable for frequent updates or point Update due to Clickhouse The update operation is very resource intensive , If you update frequently , The cluster may collapse , Please operate carefully .
Reference material :
http://t.zoukankan.com/wenBlog-p-15745238.html stay clickhouse Update and delete in
边栏推荐
- 框架初入门:更新表达式无效 ,必须至少更新一列
- JS window对象
- SQL: 重新格式化部门表 (行转列问题:Group by + 聚合函数)
- 3D programming mode: dependent isolation mode
- Open source EDA software yosys for integrated circuit design 1: tool installation
- Editor description - alternate
- 远程预付费管理系统帮助物业解决收费难统计难问题
- Use of extensions and super
- Anatomy of illusory rendering system (15) - XR topic
- vim的简单使用
猜你喜欢
随机推荐
汇编_基础概念
2022年5月29日16:05:09
Compilation_ Common instructions
JS 实现三级联动
SSM实现选中删除
配置RMAN备份的环境_配置高级的备份选项
修改市场活动表
配置RMAN备份的环境_配置备份保留策略(RETENTION POLICY)
mysql常用命令
Lambda expression
RMAN备份概念_关于RMAN增量备份(RMAN INCREMENTAL BACKUP)
如何解决mouseup事件失效的问题
Secondary development of Nacos
【天线】【2】一些名词和简单概念的解释,仍然
修改市場活動錶
Configuring the environment for RMAN backups_ Configure backup optimization
Written by shellcode
系统运维系列 之greenplum vacuum清理删除数据命令
SQL: 重新格式化部门表 (行转列问题:Group by + 聚合函数)
web知识点123









![[untitled]](/img/f9/f07f85bbf9881b5d30eb11ee1790b3.png)