by fr1tkot · 7y ago · 0 comments
It doesn't save me time, but a lot of nerves.
SELECT *
-- DELETE
FROM Sales
WHERE Customer = 1
Next, selecting the whole query and executing it. If results are satisfactory - selecting only the DELETE part. select * -- delete
from sales
where customer = 1
so it's even harder to accidentally highlight the 'delete' part.Although I've switched to DBeaver for a year now, and it automatically pops up a warning when it detects a DELETE query without a WHERE, which is very nice.