【发布时间】:2013-11-17 12:48:35
【问题描述】:
我有三张桌子
表 1 供应商 (sno, sname, city)
1, ahmad, jeddah
表 2 部分 (pno, pname, color)
1, laptop, red
表 3 supplier_parts_shipment (shno, sno, pno, date)
1, 1, 1, 2014
我需要删除 city='jeddah'and color='red' 的货件 - 怎么做?
1 delete from supplier_parts_shipment
2 where sno in (select sno from supplier where city='jeddah')
3 and pno(select pno from parts where color='red')
4* and (sno=sno) and (pno=pno)
SQL> /
and pno(select pno from parts where color='red')
*
ERROR at line 3:
ORA-00936: missing expression
【问题讨论】:
-
再读一遍你的第三行
-
这是 Oracle,从
ORA-....错误消息来看,NOT 用于(Microsoft)SQL Server - 相应地更新了标签跨度>