当前位置:网站首页>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);
边栏推荐
- 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
- Vulkan-性能及精细化
- [golang syntax] map common errors golang panic: assignment to entry in nil map
- 字符设备注册常用的两种方法和步骤
- Form form instantiation
- 为什么网站打开速度慢?
- Illustrated network: what is virtual router redundancy protocol VRRP?
- Attributeerror: 'tuple' object has no attribute 'layer' problem solving
- ftrace工具的介绍及使用
- Andorid gets the system title bar height
猜你喜欢

Vulkan-实践第一弹

Shell implements basic file operations (SED edit, awk match)

Introduction and use of ftrace tool

【AutoSAR 一 概述】

Multiprocess programming (I): basic concepts

如何系统学习机器学习

2022中国3D视觉企业(引导定位、分拣场景)厂商名单

The "2022 China Digital Office Market Research Report" can be downloaded to explain the 176.8 billion yuan market in detail

Nacos+openfeign error reporting solution

Redis21 classic interview questions, extreme pull interviewer
随机推荐
DotNet圈里一个优秀的ORM——FreeSql
世平信息首席科学家吕喆:构建以数据和人员为中心的安全能力
[MCU project training] eight way answering machine
利亚德:Micro LED 产品消费端首先针对 100 英寸以上电视,现阶段进入更小尺寸还有难度
Form form instantiation
Hdu3507 (slope DP entry)
Shell 实现文件基本操作(切割、排序、去重)
关于QByteArray存储十六进制 与十六进制互转
Meaning of Tencent cloud free SSL certificate extension file
1.12 - Instructions
文件操作IO-Part2
【日常训练】871. 最低加油次数
1.12 - 指令
pod生命周期详解
cordova-plugin-device获取设备信息插件导致华为审核不通过
leetcode-2280:表示一个折线图的最少线段数
Vulkan-实践第一弹
【雅思阅读】王希伟阅读P1(阅读判断题)
Redis21 classic interview questions, extreme pull interviewer
百度智能云牵头打造智能云综合标准化平台