sql-update Flashcards
1
Q
How do you update rows in a database table?
A
Update “table name”
Set “column name” = ‘value’ (no quotes if a number)
Where “column name” followed by condition
2
Q
Why is it important to include a where clause in your update statements?
A
If you do not include where, it will update every row in the table with the value