S
sjm
Unregistered / Unconfirmed
GUEST, unregistred user!
Select a.ID, b.Name, a.[Time] from Origin a join Cards b on CardID = PatrolMan where (b.Name = '丁彬' or b.Name = '刘雪梅') and a.[Time]>='2009-4-3' and a.[Time]<'2009-4-4' order by b.Name以上语句可以正常查询。现在我想在查询的结果集中删除a.ID = 1234的记录,我用了以下写法但报错:Delete from(Select a.ID, b.Name, a.[Time] from Origin a join Cards b on CardID = PatrolMan where (b.Name = '丁彬' or b.Name = '刘雪梅') and a.[Time]>='2009-4-3' and a.[Time]<'2009-4-4' ) where a.ID = 1234请问应该如何修改才能通过呢?谢谢!