我正在尝试在 sql server 上运行用 Access 编写的 sql。该查询在第 4 行引发语法错误:
UPDATE mytablename SET
table.[Specimen Collection Date 1] =
IIf(
[Specimen Collection Date 2] Is Not Null, //incorrect syntax near is
[Specimen Collection Date 2],
IIf([Specimen Collection Date 2] Is Null,[Specimen Collection Date 3] Is Not Null))
似乎一个有效的列名[Speciment Collection Date]
似乎是一个有效的表达式。
我错过了什么?