当前位置:网站首页>数据仓库系列 之Clickhouse中的更新和删除操作
数据仓库系列 之Clickhouse中的更新和删除操作
2022-06-09 08:20:00 【琅晓琳】
测试数据
select count(*) from system.columns where table='test_update';
select count(*) from test_update;
具体删除&更新实现
语法 如下:
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;
该命令是异步执行的,可以通过查看表 system.mutations 来查看命令的是否执行完毕。
Clickhouse更新操作有一些限制:
索引列不能进行更新;
分布式表不能进行更新;
ALTER TABLE UPDATE/DELETE不支持分布式DDL,因此需要在分布式环境中手动在每个节点上local的进行更新/删除数据;
不适合频繁更新或point更新由于Clickhouse更新操作非常耗资源,如果频繁的进行更新操作,可能会弄崩集群,请谨慎操作。
参考资料:
http://t.zoukankan.com/wenBlog-p-15745238.html 在clickhouse中更新和删除
边栏推荐
- Excerpt of a verse of compassion and gladness
- Senior management information systems and data warehouses and external / unstructured data and data warehouses
- P3954 [noip2017 popularization group] results
- Kibana:Kibana 入门 (一)
- 【TeXstudio】【3】较为完整的论文排版模板与bib文件引用方法
- 国信证券开户安全吗
- [reading some papers] benchmark analysis of representative deep neural network architectures when accuracy is no longer the only measure, it provides a guidance for multi-objective optimization
- Quarkus practical learning I
- Heavyweight! Wuhan university students made a successful satellite launch!
- 2022-2028 investigation and trend analysis report on global anti UAV netting gun industry
猜你喜欢
![[reading papers] efficientnet: retailing model scaling for revolutionary neural networks](/img/fc/117a074fc89ee90e367f425c54d378.png)
[reading papers] efficientnet: retailing model scaling for revolutionary neural networks

Out object of JSP development details you should know (I)

苹果胜诉 法官驳回iPhone安全欺诈集体诉讼

Liuyongzhi: one code communication defect analysis and architecture design scheme - sound network developer entrepreneurship lecture VOL.02

【matlab】【数模】【1】linprog求解线性规划,标准型

The cumulative net worth of more than 1100 products fell below 0.8. Is the performance of private placement good this year?

Yyds dry goods sharing # master this Q version of figure painting method, and you can finish the avatar for one month at a time!

【TeXstudio】【1】分式dfrac,tfrac Undefined control squence错误

whatweb

【论文简介】CLIP:图像与自然语言配对预训练可迁移模型:Learning Transferable Visual Models From Natural Language Supervision
随机推荐
Market Research - current situation and future development trend of ethylene absorbent package market in the world and China
[reading some papers] benchmark analysis of representative deep neural network architectures when accuracy is no longer the only measure, it provides a guidance for multi-objective optimization
Kibana: introduction to kibana (I)
XML json YAML interconversion
刘勇智:一码通缺陷分析与架构设计方案丨声网开发者创业讲堂 Vol.02
Excerpt of a verse of compassion and gladness
【TeXstudio】【2】一般的图片和表格的表现形式
mysql 往字段后面加字符串
POI,Cos实现Excel文件上传下载
Liuyongzhi: one code communication defect analysis and architecture design scheme - sound network developer entrepreneurship lecture VOL.02
【天线】【2】一些名词和简单概念的解释,仍然
Twitter's latest feature lets businesses preview upcoming products and remind customers to go shopping
Elk+filebeat deployment and installation
OpenInfra Summit 2022 | 华云数据用户再度入围超级用户大奖
Market Research - current situation and future development trend of global and Chinese dental zirconia materials market
自制编译器学习4:使用Flex
Global and China flywheel energy storage development research and future forecast report (2022 Edition)
Quarkus practical learning I
EDA开源仿真工具verilator入门1:安装和测试
[paper introduction] clip: image and natural language pairing pre training transferable visual models from natural language supervision