Oh yeah, this happened to me once. Ran an update without a where clause, and in the moments after that, I had planned my exile to a remote village in Scotland.
Fortunately, I had run select before the update, and it was a small table so al the data was on the terminal.
SET AUTOCOMMIT=0; after that.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
On prod env:
drop table <important_table_here>;
update <table> set <sequential_field> = <constant_val>
:( now i check ten times before run a command :(
Sounds like a good time to test your DB backups too!
Oh yeah, this happened to me once. Ran an update without a where clause, and in the moments after that, I had planned my exile to a remote village in Scotland.
Fortunately, I had run select before the update, and it was a small table so al the data was on the terminal.
SET AUTOCOMMIT=0; after that.