【发布时间】:2022-10-14 05:56:34
【问题描述】:
update customers
set transaction_id = (
select transaction_id from transactions
where transaction_type IN (select transaction_type from customers where id = 1)
);
给出错误 1093。您不能在 where 子句中指定要更新的目标表?任何人都知道为什么我不允许使用这个子查询?
【问题讨论】: