当前位置:网站首页>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);
边栏推荐
猜你喜欢
Basic use of shell script
mm中的GAN模型架构
Is there a free text to speech tool to help recommend?
pod生命周期详解
Attributeerror: 'tuple' object has no attribute 'layer' problem solving
字符设备注册常用的两种方法和步骤
Why is the website slow to open?
kubernetes资源对象介绍及常用命令(五)-(NFS&PV&PVC)
Shell implements basic file operations (SED edit, awk match)
AEM: Nanlin fan Ben et al. - plant rhizosphere growth promoting bacteria control soybean blight
随机推荐
Machine learning: numpy version linear regression predicts Boston house prices
ftrace工具的介绍及使用
leetcode-224:基本计算器
Rust所有权(非常重要)
Meaning of Tencent cloud free SSL certificate extension file
antv x6节点拖拽到画布上后的回调事件(踩大坑记录)
指针初阶(基础)
【luogu P4320】道路相遇(圆方树)
Markdown tutorial
Teach you JDBC hand in hand -- structure separation
【AutoSAR 四 BSW概述】
Vulkan practice first bullet
kubernetes资源对象介绍及常用命令(五)-(NFS&PV&PVC)
利亚德:Micro LED 产品消费端首先针对 100 英寸以上电视,现阶段进入更小尺寸还有难度
2022上半年值得被看见的10条文案,每一句都能带给你力量!
Web2.0 giants have deployed VC, and tiger Dao VC may become a shortcut to Web3
深度剖析数据在内存中的存储
文件操作IO-Part2
Use Jenkins II job
Vulkan-实践第一弹