Glossary: PostgreSQL for Developers
EXCLUDED
In an upsert, the row you tried to insert. EXCLUDED.stock is the stock value from the attempted INSERT.
Glossary: PostgreSQL for Developers
In an upsert, the row you tried to insert. EXCLUDED.stock is the stock value from the attempted INSERT.