UPDATE query based on a saved SELECT query in Acce

2019-07-05 01:29发布

Using a UPDATE query, is it possible to reference to a stored select query?

I'd like to accomplish something like this:

UPDATE ... WHERE ... IN [MY_STORED_PROCEDURE]

1条回答
做自己的国王
2楼-- · 2019-07-05 02:29

Perhaps something on these lines:

UPDATE ...
WHERE ID IN (SELECT ID FROM MyStoredProc)

Depending on your set up, a join may also be possible. You can add stored queries to the query design window, but you do not always end up with an updatable query, it usually depends on your indexes.

查看更多
登录 后发表回答