Replies: 1 comment
-
This is a great question for the "Ask AI" button at the top: Enter your question: "Is it possible to have the primary key autogenerated when a new insertion is made?" and see the magic 🚀 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's say I have the following Postgres table:
Now I want to insert a new row in this table:
However, the above insertion doesn't work unless I specify an id. I guess I can generate a random id using for example the v4 method from uuid, but I would prefer not to if possible. Is it possible to have the primary key autogenerated when a new insertion is made?
Beta Was this translation helpful? Give feedback.
All reactions