← Quiz: SQL Basics: all 10 questions
Quiz: SQL Basics · Question 2 of 10
What does UPDATE students SET city = 'Pune'; do?
What does UPDATE students SET city = 'Pune'; do?
- A.Nothing — WHERE is required
- B.Sets city to Pune for EVERY row
- C.Updates only the first row
- D.Gives an error
Answer & explanation
Correct answer: Sets city to Pune for EVERY row
Without WHERE, UPDATE changes all rows.
Can you get the rest right without peeking?
Take the timed Quiz: SQL Basics quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →