Skip to content

Unable to use Insert() on table without PK. #341

Answered by stephenafamo
VRmnv asked this question in Q&A

You must be logged in to vote

If a table does not have a primary key, it is treated as a "view"

While INSERT would be harmless, UPDATE and DELETE cannot work without a primary key.
At the moment, there is no way to allow INSERT without also allowing UPDATE and DELETE, so this is how it is currently designed.

If it si not too much trouble, I think it is easiest to add a primary key to the table

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by VRmnv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants