How can I create a table from another table without copying
any values from the old table?

Answer Posted / anji

create table table_name as ( select * from old_table where 1=2)

from this query we can create a new table structure from old
table structure with out data

Is This Answer Correct ?    26 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi how to import oracle sequence in Informatica? Please write stored procedure code that will import oracle sequence in Informatica SP transformation as per below scenario Oracle table product list Pro_id, pro_name 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights Now a new flat file with new product list needs to be added to oracle table product list with oracle sequence. flat file product Prono,pro_name, 1, 20 watt tube light 2, 30 watt tube light & target should be like 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights. 104, 20 watt tube light 105, 30 watt tube light thks reg suvarna joshi suvarnaatsuvarna@rediffmail.com

2056


What is the file extension for sql database?

511


what are the join types in tsql? : Transact sql

568


Why do we use cursors?

503


Is sql a dbms?

523






If i can use sys.check_constraints to display my constraints from my database using sql server 2005, how can i display then if i am using sql server 2000????

3543


What is the difference between the sql*loader and import utilities? : aql loader

591


How do I know if I have sql express or standard?

591


What is difference between rank () row_number () and dense_rank () in sql?

569


Why is sql better than hql?

498


explain the difference between delete , truncate and drop commands? : Sql dba

540


How do you break a loop in pl sql?

517


What is mutating error in pl sql?

536


Can a commit statement be executed as part of a trigger?

598


What is a null value?

653