会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Qiurf
Young,Simple,Naive
博客园
首页
新随笔
联系
订阅
管理
2015年3月20日
MySQL: [Err] 1093 - You can't specify target table 'bk' for update in FROM clause
摘要: 错误的意思说,不能先select出同一表中的某些值,再update这个表(在同一语句中)。 例如下面这个sql: delete from tbl where id in( select max(id) from tbl a where EXISTS ( select 1 from tbl ...
阅读全文
posted @ 2015-03-20 15:11 Qiurf
阅读(2211)
评论(0)
推荐(0)
公告