【发布时间】:2018-06-18 10:30:58
【问题描述】:
在我的程序中我尝试更新存储表
根据 storetemp 表的值,但它将所有值更改为 stortemp 中的最后一个值
这是我的代码
CurrentDb.Execute ("UPDATE store, storetemp " & _
"SET store.[cuantity]=storetemp.[cuantity] " & _
"WHERE EXISTS ( " & _
"SELECT 1 FROM storetemp " & _
"WHERE store.[name] = storetemp.[name] " & _
") ")
【问题讨论】:
-
欢迎来到 Stack Overflow!你没有显示你的表的定义,没有它很难给出一个好的答案。见Why should I provide an MCVE for what seems to me to be a very simple SQL query?