How to Delete using INNER JOIN with SQL Server?

后端 未结 16 1943
刺人心
刺人心 2020-11-22 10:50

I want to delete using INNER JOIN in SQL Server 2008.

But I get this error:

Msg 156, Level 15, State 1, Line 15<

16条回答
  •  遥遥无期
    2020-11-22 11:41

    Here's what I currently use for deleting or even, updating:

    DELETE           w
    FROM             WorkRecord2   w,
                     Employee      e
    WHERE            w.EmployeeRun = e.EmployeeNo
                 AND w.Company = '1' 
                 AND w.Date = '2013-05-06'
    

提交回复
热议问题