sql-delete Flashcards
1
Q
How do you delete rows from a database table?
A
delete statement with a where clause
delete from “products”
where “category” = ‘cleaning’
and “price” < 20
2
Q
How do you accidentally delete all rows from a table?
A
By omitting the where clause