-1

How to undo DROP TABLE statement without backup in SQL?

1 Answers1

1

If you are using Oracle then you can use flashback drop. For more details check this link http://docs.oracle.com/cd/B19306_01/backup.102/b14192/flashptr004.htm

SQL> drop table mytab;

Table dropped.

SQL> select original_name from dba_recyclebin;

Original Name
-------------------------------- 
MYTAB 

SQL> flashback table MYTAB to before drop;

Flashback complete.

SQL> select * from mytab;

ID 
---------- 
2 
2
Ben
  • 51,770
  • 36
  • 127
  • 149
Manoj Kumar
  • 745
  • 2
  • 8
  • 29