查询表达式中存在语法错误(缺少运算符)?
您好,提前感谢您的帮助。
我收到错误:“查询表达式中存在语法错误(缺少运算符)”,我不知道为什么......有什么想法吗?
这是我的查询:
UPDATE
table1
SET
table1.country_name = table2.COUNTRY,
table1.city = table2.CITY ,
table1.state = table2.STATE
FROM
( table1
inner join
table2
ON
table2.SITE_ID = table1.SiteID )
where
table1.country_name is null;
hello and thanks in advance for any help.
I am getting an error: 'Syntax Error (missing operator) in query expression' and I do not know why... any ideas?
This is my query:
UPDATE
table1
SET
table1.country_name = table2.COUNTRY,
table1.city = table2.CITY ,
table1.state = table2.STATE
FROM
( table1
inner join
table2
ON
table2.SITE_ID = table1.SiteID )
where
table1.country_name is null;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Access/Jet 中的 UPDATE 查询中没有 FROM 子句SQL:
There is no FROM clause in an UPDATE query in Access/Jet SQL:
去掉连接表周围的括号。此外,我个人会为 table1 和 table2 创建一个别名,并在更新中引用 table1 别名。像这样:
Lose the parenthesis around the joined tables. In addition I would personally make an alias for table1 and table2 and reference the table1 alias in the update. Like this: