【发布时间】:2015-07-23 01:28:15
【问题描述】:
选择工作:
select * from A
where A.id not in
(
select id from A as a
inner join B as b
where (a.`name` = b.`name`
and a.`status` = b.`description`))
删除不起作用:
delete from pre_log
where pre_log.id not in
(
select id from pre_log as p
inner join sobg_table as s
where (p.`name` = s.`name`
and p.`status` = s.`description`)
)
错误代码:1093。您不能在 FROM 子句 0,001 秒中指定目标表 'pre_log' 进行更新
【问题讨论】: