you can also just change your deletion to select *
and check your choice
the selected entries will be the same as those that were deleted
you can also wrap your statement at the beginning / rollback, if you are not sure - check the statement, if everything is good remove the rollback
eg
SELECT * FROM table WHERE ID BETWEEN 79 AND 296
will display all entries matching if this is what you really want to delete use
DELETE FROM table WHERE ID BETWEEN 79 AND 296
You can also create a trigger / that catches deletes and puts them in the history table
therefore, if you delete something by mistake, you can always return it
(keep entries in the history table no older than 6 months or, oddly enough, in the business rules)
TheTiger Jun 16 '12 at 12:10 2012-06-16 12:10
source share