当前位置:网站首页>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);
边栏推荐
- Automated defect analysis in electron microscopic images-论文阅读笔记
- [IELTS reading] Wang Xiwei reading P2 (reading fill in the blank)
- Multiprocess programming (4): shared memory
- 字符设备注册常用的两种方法和步骤
- 数组常用操作方法整理(包含es6)及详细使用
- leetcode-1964:找出到每个位置为止最长的有效障碍赛跑路线
- [MCU project training] eight way answering machine
- 1.11 - 总线
- Use Jenkins II job
- 【luogu P4320】道路相遇(圆方树)
猜你喜欢
Vulkan practice first bullet
Logback configuration file
【AutoSAR 十三 NVM】
世平信息首席科学家吕喆:构建以数据和人员为中心的安全能力
Win10 多种方式解决无法安装.Net3.5的问题
奥斯陆大学:Li Meng | 基于Swin-Transformer的深度强化学习
University of Toronto: Anthony coach | the conditions of deep reinforcement learning can induce dynamic risk measurement
Linux Software: how to install redis service
Is there a free text to speech tool to help recommend?
How SQLSEVER removes data with duplicate IDS
随机推荐
Rust string slicing, structs, and enumeration classes
【AutoSAR 十一 通信相关机制】
Web2.0的巨头纷纷布局VC,Tiger DAO VC或成抵达Web3捷径
Extension of flutter
Shell implements basic file operations (cutting, sorting, and de duplication)
Helm basic learning
File operation io-part2
One of the reasons why setinterval timer does not take effect in ie: the callback is the arrow function
利亚德:Micro LED 产品消费端首先针对 100 英寸以上电视,现阶段进入更小尺寸还有难度
Multiprocess programming (II): Pipeline
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
1.12 - Instructions
【日常训练】871. 最低加油次数
【AutoSAR 三 RTE概述】
2022 list of manufacturers of Chinese 3D vision enterprises (guided positioning and sorting scenes)
如何系统学习机器学习
[MCU project training] eight way answering machine
1.11 - bus
Vulkan practice first bullet
[IELTS reading] Wang Xiwei reading P1 (reading judgment question)