i accidentally deleted some huge rows from a table..
How can i rollback it?
I executed the query using the putty ...
I'll greatful if any of me guide me safe out this hole..
i accidentally deleted some huge rows from a table..
How can i rollback it?
I executed the query using the putty ...
I'll greatful if any of me guide me safe out this hole..
If you didn't commit the transaction yet, try rollback. If you have already committed the transaction (by commit or by exiting the command line client), you must restore the data from your last backup.
A "rollback" only works if you used transactions (http://www.sqlteam.com/article/introduction-to-transactions). That way you can group queries together and undo all queries if only one of them fails.
But if you already committed the transaction (or used a regular DELETE-query), the only way of getting your data back is to recover it from a previously made backup.