sql-delete Flashcards
1
Q
How do you delete rows from a database table?
A
DELETE FROM “tableName”
WHERE “thisColumn” = ‘hasThisValue’
RETURNING *;
2
Q
How do you accidentally delete all rows from a table?
A
by not using the WHERE clause