更新语句不起作用

时间:2013-01-04 08:19:42

标签: sql sql-server sql-server-2008 sql-update

任何人都可以提出为什么更新语句在SQL-SERVER-2008中不能用于下面提到的代码

UPDATE [dbo].[CTRL_SECURITY]
SET BI_FIN_FLG = ISNULL(CAF.BI_FIN_FLG,'N'), 
           BI_HR_FLG = ISNULL(CAF.BI_HR_FLG,'N')
FROM dbo.CTRL_APP_FLG AS CAF
LEFT JOIN [dbo].[CTRL_SECURITY] AS CS
      ON CAF.TABLE_COLUMN_VALUE = CAST(CS.ACCOUNT_ID AS VARCHAR(180))
   WHERE ACCOUNT_ID IN(SELECT TABLE_COLUMN_VALUE FROM dbo.CTRL_APP_FLG WHERE TABLE_NAME='DIM_ACCOUNT')

1 个答案:

答案 0 :(得分:0)

更新UPDATE [dbo]。[CTRL_SECURITY]更新CS