sql update Flashcards
1
Q
How do you update rows in a database table?
A
UPDATE “table”
SET “columnToUpdate” = ‘newValue’
WHERE “columnName” = ‘value’;
2
Q
Why is it important to include a where clause in your update statements?
A
Otherwise every row will update