Tag Archives: take backup of table

CTAS commands for creating tables in Oracle

Create structure, duplicate & back up the table in the oracle database

Use of CTAS for creating the Duplicate table with data or only structure (by using where 1 = 0) in Oracle Database:

Oracle: Syntax of using CTAS method

-- Create backup table with data
Create table backup_employee as select * from employees;

-- Create table with only structure
Create table backup_employee as select * from employees where 1=0;