Upsert a Customer
Insert a customer (id 1, name 'Aman', city 'Pune'). If a customer with id 1 already exists update the name and city instead.
Table schema
Customers(id INT PRIMARY KEY, name VARCHAR(50), city VARCHAR(50))Sample data
Existing row: (1, 'Aman K', 'Delhi')
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.