How to copy a table in another table with datas?

Answer Posted / guest

If new table is not yet created,
create table new_table as select * from old_table;

if new table is already created,
insert into new table select * from old_table
provided the structure of the new table is same as old
table.

Is This Answer Correct ?    21 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of the sql select top clause?

557


Is left join inner or outer by default?

523


Why are cursors used?

583


Does user triggers have entry for trigger with compilation errors?

600


Which kind of parameters cannot have a default value in pl sql?

595






What are the types of optimization?

521


Is record in pl sql?

516


What are schema-level triggers?

582


Which language is used in sql?

518


how many groups of data types? : Sql dba

569


What does the hierarchical profiler does?

570


What are the basic techniques of indexing?

577


How many clustered indexes can you have?

535


What is mutating table error?

664


What is the example of procedure?

525