Skip to content

Instantly share code, notes, and snippets.

@RRRoger
Last active November 14, 2021 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RRRoger/008427e7045030d1af8b7b6862b54467 to your computer and use it in GitHub Desktop.
Save RRRoger/008427e7045030d1af8b7b6862b54467 to your computer and use it in GitHub Desktop.
Upsert Do Nothing
INSERT INTO customers (NAME, email)
VALUES('Microsoft','hotline@microsoft.com')
ON CONFLICT ON CONSTRAINT customers_name_key
DO NOTHING;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment