如何删除与SQLServer的内部连接?我想删除使用INNER JOIN在……里面SQLServer 2008.但我知道这个错误:MSG 156,15级,状态1,15号线不正确的语法靠近关键字‘内部’。我的代码:DELETE FROM WorkRecord2
INNER JOIN Employee ON EmployeeRun=EmployeeNoWHERE Company = '1' AND Date = '2013-05-06'
3 回答
SMILET
TA贡献1796条经验 获得超4个赞
DELETE wFROM WorkRecord2 wINNER JOIN Employee e ON EmployeeRun=EmployeeNoWHERE Company = '1' AND Date = '2013-05-06'
慕桂英546537
TA贡献1848条经验 获得超10个赞
DELETE
FROM
ORDER BY
DELETE WorkRecord2 FROM WorkRecord2 INNER JOIN Employee ON EmployeeRun=EmployeeNo WHERE Company = '1' AND Date = '2013-05-06';
心有法竹
TA贡献1866条经验 获得超5个赞
DELETE FROM dbo.WorkRecord2 WHERE EmployeeRun IN ( SELECT e.EmployeeNo FROM dbo.Employee e WHERE ...)
DELETE FROM dbo.WorkRecord2 WHERE EXISTS( SELECT 1 FROM dbo.Employee e WHERE EmployeeRun = e.EmployeeNo AND ....)
添加回答
举报
0/150
提交
取消