AllExperts > Oracle 
Search      
Oracle
Volunteer
Answers to thousands of questions
 Home · More Oracle Questions · Answer Library  · Encyclopedia ·
More Oracle Answers
Question Library

Ask a question about Oracle
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Edson
Expertise
I can answer questions about Sql (including Sql tuning), pl/Sql and a bit of oracle administration

Experience
I work as a consultant in Brazil and I face problems of all kind in oracle every day development.

Education/Credentials
INFNET

 
   

You are here:  Experts > Computing/Technology > Oracle > Oracle > sql query

Oracle - sql query


Expert: Edson - 9/26/2009

Question
I want to know that how to use flash back query if anybook

please tell me I want to rollback The DDL commands.

Answer
---Examples of FlashBack

create table test_flashback
(ab number(2));

insert into test_flashback
select substr(dman_cd_dim_ano,1,2) from dm_ano;

delete from test_flashback;

commit;

insert into test_flashback select * from test_flashback as of timestamp(sysdate - ((1/24)/60));

commit;

---------------------------------

drop table test_flashback;

flashback table test_flashback to before drop;



----Real example

select count(*) from (
select * from test_flashback as of timestamp(sysdate - ((10/24)/60))
  ) a

Wait your reply

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.