惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
C
Cisco Blogs
Help Net Security
Help Net Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Scott Helme
Scott Helme
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
M
MIT News - Artificial intelligence
L
LINUX DO - 热门话题
I
InfoQ
GbyAI
GbyAI
NISL@THU
NISL@THU
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Engineering at Meta
Engineering at Meta
H
Hackread – Cybersecurity News, Data Breaches, AI and More
TaoSecurity Blog
TaoSecurity Blog
Simon Willison's Weblog
Simon Willison's Weblog
A
About on SuperTechFans
Spread Privacy
Spread Privacy
月光博客
月光博客
W
WeLiveSecurity
AWS News Blog
AWS News Blog
云风的 BLOG
云风的 BLOG
有赞技术团队
有赞技术团队
Security Latest
Security Latest
人人都是产品经理
人人都是产品经理
PCI Perspectives
PCI Perspectives
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Microsoft Azure Blog
Microsoft Azure Blog
Hugging Face - Blog
Hugging Face - Blog
S
SegmentFault 最新的问题
T
Troy Hunt's Blog
Martin Fowler
Martin Fowler
The Hacker News
The Hacker News
T
Tor Project blog
C
CERT Recently Published Vulnerability Notes
Apple Machine Learning Research
Apple Machine Learning Research
Stack Overflow Blog
Stack Overflow Blog
K
Kaspersky official blog
Cloudbric
Cloudbric
H
Help Net Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tailwind CSS Blog
D
DataBreaches.Net
Security Archives - TechRepublic
Security Archives - TechRepublic
T
Tenable Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
博客园 - Franky
L
LINUX DO - 最新话题
MyScale Blog
MyScale Blog

博客园 - JeromePowell

CentOS 7.9.2009升级最新的Linux Kernel 6.9.7 macOS通过WireShark分析HTTPS协议SSL、TLS报文的一种简单方式 error: rpmdb, failed: BDB1507 Thread died in Berkeley DB library,error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery docker: Error response from daemon: cgroups: cannot find cgroup mount destination: unknown. Python 3.12 kafka-python Error:ModuleNotFoundError: No module named 'kafka.vendor.six.moves' 流影 网络流量可视化分析和威胁感知平台 brew安装postgresql@15 centos7安装ffmpeg v4.1 Windows 11恢复Windows经典菜单 MySQL参数 Vulture 一键找出项目中所有无效的Python代码 【Tips】信息传递技巧 qrencode命令 扫描屏幕二维码 【Tips】克隆网站为单个HTML文件、将一个完整的页面保存到单个 HTML 文件中 【Tips】Mac读写NTFS格式硬盘 Rust Atomics and Locks CentOS7 OpenSSL升级安装openssl-1.1.1u 空调选购参考 试用elasticsearch centos 安装docker-ce、docker compose
You can’t specify target table ‘aaa′ for update in FROM clause
JeromePowell · 2023-07-20 · via 博客园 - JeromePowell
You can’t specify target table ‘aaa′ for update in FROM clause 

使用MySQL 执行DELETE FROM时,若子查询的 FROM 子句和更新/删除对象使用同一张表,会出现错误。

针对“同一张表”这个限制,撇开效率不谈,多数情况下都可以通过多加一层SELECT别名表来变通解决,如下:

DELETE FROM aaa WHERE id IN (SELECT id FROM (SELECT aaa.id FROM aaa WHERE 1=1) tmp)

Copyright © 2026 Primzahl. All rights reserved.