This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11784|Reply: 0

[Source] Cannot insert the value NULL into column 'ID', table 'XX'; column does not al...

[Copy link]
Posted on 6/16/2016 1:58:03 PM | | |
Cannot insert the value NULL into column 'ID', table 'XX'; column does not allow nulls. INSERT fails.


Unable to insert NULL value into column ID, table 'XX'; Null values are not allowed in columns. Insertion failed.

This is, I executed the stored procedure to report an error, in fact, the error is very simple, the id column cannot be empty, and then, when inserting, the id has no incoming parameters,

The reason is that my id has been changed from int type to bigint, and I forgot to set auto-growth.

Now the ID is not self-grown, it needs to be inserted, of course an error is reported.




Previous:Share a useful search artifact
Next:C# Log4net log configuration is explained in detail
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com