我有一个访问查询,我试图转换为SQL,但获得Msg 102 ... Msg 102,Level 15,State 1,Line 2 '='附近的语法不正确。 Msg 102,Level 15,State 1,Line 7 'r'附近的语法不正确。
我能知道这有什么不对吗?UPDATE r
SET r.Estimate_date_collected = (IIf([LAB].[nationality]='MD',
DateAdd("m",-1,[lab].[Date Received]),
DateAdd("m",-2,[lab].[Date Received])))
From temp as r INNER JOIN temp1 as l
ON r.[ID #] = l.[ID #]
WHERE ((((r.Estimate_date_collected) Is Null)) AND ((r.[Date Coll't]) Is Null))) ;