我使用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 命令未正确结束”
试试这个代码:
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;