当前位置:网站首页>MySQL multi table joint deletion
MySQL multi table joint deletion
2022-07-03 00:46:00 【Happy big bang】
delete from A WHERE A.name in (SELECT name FROM B WHERE TIMESTAMPDIFF(DAY,time,NOW()) >= 30);//B The inserted data in the table is more than 30 days compared with the current time ,, Delete A The corresponding data in the table
delete from C WHERE C.task_name in (SELECT name FROM B WHERE TIMESTAMPDIFF(DAY,time,NOW()) >= 30);//B The inserted data in the table is more than 30 days compared with the current time ,, Delete C The corresponding data in the table
delete from B where TIMESTAMPDIFF(DAY,time,NOW()) >= 30);
边栏推荐
- leetcode-849:到最近的人的最大距离
- 1.12 - 指令
- Array common operation methods sorting (including ES6) and detailed use
- 可下载《2022年中国数字化办公市场研究报告》详解1768亿元市场
- Web2.0 giants have deployed VC, and tiger Dao VC may become a shortcut to Web3
- Nc17059 queue Q
- 1.11 - bus
- Solution to the problem of abnormal display of PDF exported Chinese documents of confluence
- AttributeError: ‘tuple‘ object has no attribute ‘layer‘问题解决
- Leetcode 294. Flip game II (game theory)
猜你喜欢

百度智能云牵头打造智能云综合标准化平台

利亚德:Micro LED 产品消费端首先针对 100 英寸以上电视,现阶段进入更小尺寸还有难度

Automated defect analysis in electronic microscopic images

世平信息首席科学家吕喆:构建以数据和人员为中心的安全能力

为什么网站打开速度慢?

Liad: the consumer end of micro LED products is first targeted at TVs above 100 inches. At this stage, it is still difficult to enter a smaller size

【案例分享】让新时代教育发展与“数”俱进

Nacos+openfeign error reporting solution

University of Toronto: Anthony coach | the conditions of deep reinforcement learning can induce dynamic risk measurement

Rust所有权(非常重要)
随机推荐
Web2.0的巨头纷纷布局VC,Tiger DAO VC或成抵达Web3捷径
Basic use of shell script
lex && yacc && bison && flex 配置的问题
AttributeError: ‘tuple‘ object has no attribute ‘layer‘问题解决
leetcode-1964:找出到每个位置为止最长的有效障碍赛跑路线
The most painful programming problem in 2021, adventure of code 2021 Day24
kubernetes编写yml简单入门
1.11 - bus
Baidu AI Cloud takes the lead in building a comprehensive and standardized platform for smart cloud
利亚德:Micro LED 产品消费端首先针对 100 英寸以上电视,现阶段进入更小尺寸还有难度
Logback configuration file
Multiprocess programming (4): shared memory
Markdown tutorial
MySQL 23 classic interview hanging interviewer
Shell implements basic file operations (cutting, sorting, and de duplication)
Tensorflow 2. Chapter 15 of X (keras) source code explanation: migration learning and fine tuning
JSON conversion tool class
【AutoSAR 十 IO架构】
Preview word documents online
Two common methods and steps of character device registration