什麼我在下面這段代碼丟失將導致錯誤:SQL DB2 SQL錯誤不正確的語法
Msg 170, level 15, line 113 line 113: Incorrect syntax near 'actual_completion_date'.
update #Loss_mit_step
set
[STEP924_COMPL_DATE] = Case when step_code ='924' then ls_actual_completion_date else ' ' end,
[STEP926_COMPL_DATE] = Case when step_code ='926' then ls_actual_completion_date else ' ' end,
[STEP927_COMPL_DATE] = Case when step_code ='927' then ls_actual_completion_date else ' ' end,
[STEP928_COMPL_DATE] = Case when step_code ='928' then ls_actual_completion_date else ' ' end,
[APPROVAL_DATE] = Case when step_code ='Q28' then ls_actual_completion_date else ' ' end
請格式化您的代碼。在編輯器中選擇它並按下Control-K。 – 2010-07-12 19:11:54
@marc:那是我的編輯。我認爲這就像他以前的問題,他使用的是DB2鏈接服務器。也許這個是純粹的T-SQL? – 2010-07-12 19:35:40