sql-update Flashcards
1
Q
How do you update rows in a database-table?
A
update “products”
set “price” = 100
where “productId” = 24;
2
Q
Why is it so important to include a where clause in your update statements?
A
So that it only targets specific rows