0
我的查询出了什么问题,它为什么不执行?使用NOT IN子查询进行更新时出错
UPDATE mbdb.pessoa
SET status = 4
WHERE id_pessoa NOT IN
(SELECT id_pessoa
FROM mbdb.pessoa mp
INNER JOIN mbdb.funcionario mf ON mp.cpf = mf.cpf)
错误代码:
您不能指定目标表“昂佩索阿”的更新在FROM子句
从子查询中再次选择或更好地使用JOIN。 – Mihai 2014-10-28 19:48:52
我怎样才能使用连接? – BernardoLima 2014-10-28 19:52:14