Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: SQL
Expertise: Beginner
Feb 7, 2017

How to Undo Dropping a Table in Oracle SQL

Have you dropped a table by mistake and want to restore it? In some cases you can.

Let's say you've run this statement:

DROP TABLE yourtable; 

Now, you want to get the employee table back.

You can run the FLASHBACK statement to do this.

FLASHBACK TABLE yourtable TO BEFORE DROP; 

Your table will then be restored and you can run queries on it.

Ben Brumm
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date