i want to rollback deleted table after 20 minutes.
can i do it with or without transaction.?
i want to rollback deleted table after 20 minutes.
can i do it with or without transaction.?
You always have a transaction. As long as it's not committed you can perform a rollback.
But it sounds like you want to roll back to a specific point. If so, you can define a savepoint
:
SAVEPOINT mySavePoint;
-- Do something
ROLLBACK TO mySavePoint;