使用 MS Access,如何将多个 UPDATE 语句嵌套到一个查询中?
当我尝试保存查询时,我不断收到错误消息,警告我在 SQL 语句结束后找到了字符,因为我没有嵌套。我不确定如何正确嵌套这些。
UPDATE Table
SET Table.Pipeline_Phase = "HORSE"
WHERE Table.[COL_1] IS NOT NULL
AND Table.[COL_2] IS NULL;
UPDATE Table
SET Table.Pipeline_Phase = "MOUSE"
WHERE Table.[COL_1] IS NULL
AND Table.[COL_3] IS NOT NULL;
UPDATE Table
SET Table.Pipeline_Phase = "APPLES"
WHERE Table[COL_4] IS NOT NULL;