使用 join 删除一行[重复]

问题描述 投票:0回答:1

我使用oracle 19c,我尝试通过连接删除一行

delete from periodic_info pi
join pub p on pi.id_pub=p.id_pub
join depot d on p.id_depot=d.id_depot
where d.id_depot = 14915 and p.version=0;

我刚刚得到:

“SQL 命令未正确结束”

sql oracle-database
1个回答
0
投票

试试这个代码:

DELETE FROM periodic_info pi, pub p, depot d
WHERE pi.id_pub = p.id_pub
AND p.id_depot = d.id_depot
AND d.id_depot = 14915
AND p.version = 0;
© www.soinside.com 2019 - 2024. All rights reserved.