sql-update Flashcards
1
Q
How do you update rows in a database table?
A
use the update statement ,
update “table name”
set “column name” = ‘value’
where “column name” = ‘value’;
2
Q
Why is it important to include a where clause in your update statements?
A
to specify which row you’re updating, if where clause is not included, it would update every row.