Home » SQL & PL/SQL » SQL & PL/SQL » what is a CTAS in oracle
what is a CTAS in oracle [message #3019] Fri, 30 August 2002 03:48 Go to next message
Lena
Messages: 17
Registered: August 2002
Junior Member
Can someone please tell me what is a CTAS in oracle what does it do?
How do we preform a ctas and make sure that triggers also come over from the other database.
ALso how can I setup monitoring jobs for free space thresholds
Any help would be great
Re: what is a CTAS in oracle [message #3024 is a reply to message #3019] Fri, 30 August 2002 08:27 Go to previous message
Todd Barry
Messages: 4819
Registered: August 2001
Senior Member
Create Table As Select (CTAS)

create table new_table as
  select * from old_table;


The easiest way would be to not use CTAS but to instead use the EXP/IMP utilities which will bring the table (and optionally the data) and any associated triggers.

If you do a CTAS, you will have to manually "copy" the trigger code (extract source/recompile, use TOAD or similar product, etc.).
Previous Topic: Create table
Next Topic: Single row function to format a number to dollar
Goto Forum:
  


Current Time: Fri Apr 19 22:45:13 CDT 2024