Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does a primary key have to be a number?

964


What does partition by mean in sql?

963


How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?

1108


What is the maximum number of columns in sql table?

1172


What do you understand by exception handling in pl/sql?

1035


how would you write a query to select all teams that won either 2, 4, 6 or 8 games? : Sql dba

1345


what is difference between delete and truncate commands? : Sql dba

1134


what is the difference between ereg_replace() and eregi_replace()? : Sql dba

1155


Can we insert delete data in view?

951


Why do we use partitions in sql?

1051


how to use in conditions? : Sql dba

1013


What are sql objects?

1081


how to create a test table in your mysql server? : Sql dba

1009


What's the difference between inner join and left join?

1000


How to fetch values from testtable1 that are not in testtable2 without using not keyword?

1224