Access database "Operation must use an updatable query" __ Database

Source: Internet
Author: User

And today I have this error. "The operation must use an updatable query " Here I sorted out the reasons and solutions, you will encounter the same problems in the future can try a similar solution.

Online Baidu A lot, there is no role, most of them are said permission issues, the change is also very troublesome, and finally did not solve, the following specifically said my situation:

There are field IDs, Roomnum, username in table A

There are field IDs, remark, username in table B

Now that the field room of table A is empty, you need to find remark from the username in table A to table B, and then update to table A (if there are no users with duplicate names)


Use the general UPDATE statement as:

Update A as T1 set t1.roomnum = (select Max (username) from B as t2 where t2.username = t1.username)

This SQL statement is not allowed in the Access database and prompts " action must use an updatable query "


So I thought, another UPDATE statement, as follows:

UPDATE A as T1, (SELECT username,remarkfrom B) as t1 SET t1.roomnum = T2.remark
WHERE t1.username = t2.username;


The problem has been solved ^_^

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.