基于两个表之间的 JOIN 更新列
Update a column based on a JOIN between two tables
你能根据两个表的 JOIN 更新 TABLE 中的列吗?这是我的代码。我收到一个语法错误
Syntax error (missing operator) in query expression "Y" FROM HRBI LEFT JOIN Section16 ON HRBI.WorkerID = Section16.EEID
UPDATE HRBI
SET HRBI.Section16 = 'Y'
FROM HRBI LEFT JOIN Section16 ON HRBI.WorkerID = Section16.EEID;
谢谢!
UPDATE HRBI
LEFT JOIN Section16 ON HRBI.WorkerID = Section16.EEID
SET HRBI.Section16 = 'Y'
set
应该在join
条件之后。
你能根据两个表的 JOIN 更新 TABLE 中的列吗?这是我的代码。我收到一个语法错误
Syntax error (missing operator) in query expression "Y" FROM HRBI LEFT JOIN Section16 ON HRBI.WorkerID = Section16.EEID
UPDATE HRBI
SET HRBI.Section16 = 'Y'
FROM HRBI LEFT JOIN Section16 ON HRBI.WorkerID = Section16.EEID;
谢谢!
UPDATE HRBI
LEFT JOIN Section16 ON HRBI.WorkerID = Section16.EEID
SET HRBI.Section16 = 'Y'
set
应该在join
条件之后。