|
|
|
|
|
by CubicsRube
2455 days ago
|
|
I'm used to writing the SELECT query and adding the commented-out DELETE just below the SELECT line. SELECT *
-- DELETE
FROM Sales
WHERE Customer = 1
Next, selecting the whole query and executing it. If results are satisfactory - selecting only 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.