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.
Join Shalyam Newsletter
Get exclusive insights with every issue: education, research and innovation news.
Shalyam Support
Hi! Ask us anything โ we'll reply on WhatsApp or Telegram within 24 hours.