INSERT INTO [任務] ([LoginName將] ,[類型] ,[過濾] ,[字典] ,[說明])問題的SQL查詢
Select N'Anonymous',4,'SomeTable.targetcode in (select Code from cities where countrycode in ('TN')) and SomeTable.SomeValue in ('13','15')',3,N'Cities from tunis'
Union All
...
[字典]是一個部分查詢,我需要在我的服務器上運行。
我得到:
Incorrect syntax near ')) and SomeTable.SomeValue in (13,15)'.
如何修復這個錯誤?