ACCESS append query Error

Source: Internet
Author: User

During consumption, an append query is used:

Insert into xfxxjl (xfxxjl_id, struct, xfxxjl_zd, xfxxjl_spbm, xfxxjl_spmc, xfxxjl_dj, merge, merge, xfxxjl_sl, xfxxjl_je)
SELECT temp_id, temp_yh_id, temp_zd, temp_spbm, temp_spmc, temp_dj, temp_zk, temp_zhdj, temp_sl, temp_je
FROM temp;
An error occurred suddenly today when I used it well (SEE ):

The number of items found on the Internet is not small, some are that the field is set to allow null values, and some are that the primary key conflicts, and so on. But I checked it carefully. Both of the two reasons are ruled out.

Why? Later, I suddenly thought that when I used the data clearing function by time period a few days ago, because the table XFXXJL does not have the designed consumption time and only consumes records (xfjl) this table records the consumption time. Later, for the convenience of deletion, I set the two tables as master slave tables, and the relationship is "cascade related records ".

The reason is finally found. It is impossible to update the slave table without updating the master table.

 

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.