当前位置:网站首页>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);
边栏推荐
- Vulkan is not a "panacea"“
- 文件操作IO-Part2
- Win10 多种方式解决无法安装.Net3.5的问题
- Briefly talk about other uses of operation and maintenance monitoring
- Overlay of shutter (Pop-Up)
- Automated defect analysis in electron microscopic images-论文阅读笔记
- 为什么网站打开速度慢?
- There is an unknown problem in inserting data into the database
- 指针初阶(基础)
- DotNet圈里一个优秀的ORM——FreeSql
猜你喜欢
百数不断创新,打造自由的低代码办公工具
图解网络:什么是虚拟路由器冗余协议 VRRP?
Unity learns from spaceshooter to record the difference between fixedupdate and update in unity for the second time
[shutter] image component (load network pictures | load static pictures | load local pictures | path | provider plug-in)
Automated defect analysis in electron microscopic images-论文阅读笔记
使用jenkins之二Job
Sentry developer contribution Guide - configure pycharm
Teach you JDBC hand in hand -- structure separation
Callback event after the antv X6 node is dragged onto the canvas (stepping on a big hole record)
[applet project development -- JD mall] user defined search component of uni app (middle) -- search suggestions
随机推荐
Detailed explanation of pod life cycle
Hundreds of continuous innovation to create free low code office tools
【JetCache】JetCache的配置说明和注解属性说明
1.12 - 指令
Shell 实现文件基本操作(sed-编辑、awk-匹配)
Centos7 one click compilation to build MySQL script
百数不断创新,打造自由的低代码办公工具
University of Toronto:Anthony Coache | 深度强化学习的条件可诱导动态风险度量
简单聊聊运维监控的其他用途
Tensorflow 2.x(keras)源码详解之第十五章:迁移学习与微调
腾讯云免费SSL证书扩展文件含义
Program analysis and Optimization - 9 appendix XLA buffer assignment
Shell 实现文件基本操作(切割、排序、去重)
Preview word documents online
Graduation summary
leetcode-934:最短的桥
File operation io-part2
Free we media essential tools sharing
antv x6节点拖拽到画布上后的回调事件(踩大坑记录)
leetcode-849:到最近的人的最大距离