Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
schrodinger
· 13y ago · 0 comments
If you're in a GUI where you can run only the highlighted code, I do this:
select * -- delete from sometable where id = 1
Then you can run the whole thing to see what would be deleted, and highlight starting at the word delete to actually delete.
Comments
[–]
methurston
13y ago
I do this too, If I'm saving the file for reuse, I wrap the entire thing in /* */ when I'm done just in case I accidentally hit run script instead of run statement.