Skip to content
Theory · Changing data · lesson 6 of 10

RETURNING and ON CONFLICT

Two situations from working with the card file. First: you fixed the prices on several cards and want to see right away what they say now, without going through the drawer again. Second: you put a new card in the drawer, and a card with that number is already there. You can set the new one aside or rewrite the old one.

In this lesson

  • RETURNING
  • ON CONFLICT DO NOTHING
  • ON CONFLICT DO UPDATE
  • Common mistake
  • Key points