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 / raghunanda

---With date from existing table to new table.
SQL> create table new_table_name as select * from old_table_name where 1=1;
---without data
SQL> create table new_table_name as select * from old_table_name where 1=2;

Thanks,

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you drop a trigger?

992


What does (+) mean in sql joins?

1066


how to create a new table by selecting rows from another table in mysql? : Sql dba

1107


What is delete command in sql?

1114


How does one use sql*loader to load images, sound clips and documents? : aql loader

1187


What is use of trigger?

933


What is the use of partition by in sql?

996


Is nosql faster than sql?

1023


How do I quit sql?

963


Give the order of sql select?

1137


What are the 3 types of behavioral triggers?

1254


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

1032


What is join view in sql?

944


Explain polymorphism in pl/sql.

1123


How to sort the rows in sql.

1075