简体   繁体   中英

MS Access SQL Syntax Error

I'm trying to update a microsoft access database table field from a similar field in a linked table.

Here are my table names:

Raw data
sectionroster

And here's my query so far:

UPDATE [raw data].[current supervisor]
FROM [raw data] 
INNER JOIN [sectionroster] ON [raw data].[associate id]=[sectionroster].[employee number]
SET [raw data].[Current Supervisor] = [sectionroster].[supervisor];

It's giving me a syntax error referencing the from clause, and I can't figure out why. Any help would be appreciated!

Try this

UPDATE [raw data].[current supervisor]
SET [raw data].[Current Supervisor] = [sectionroster].[supervisor]
FROM [raw data] 
INNER JOIN [sectionroster] ON [raw data].[associate id]=[sectionroster].[employee number]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM