Skip to content

Instantly share code, notes, and snippets.

@aquaductape
Created August 26, 2023 18:05
Show Gist options
  • Save aquaductape/ce13b6c9fb9dde3850af38817abe9c49 to your computer and use it in GitHub Desktop.
Save aquaductape/ce13b6c9fb9dde3850af38817abe9c49 to your computer and use it in GitHub Desktop.
One of the ways to return value from insert statement
INSERT INTO cats (name, owner_name, age) VALUES ('aaa', 'joooooohn', 5) RETURNING *;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment