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 can I create a table from another table without copying
any values from the old table?

Answer Posted / suresh babu

create table new_tn as select * from source_tn where 1=2;

This query will create a new table,which take structure of
the source table with out values.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java sql drivermanager?

1020


How do you create an update query?

913


Explain how to use transactions efficiently : transact sql

923


What is the difference between a subquery and a join?

1012


What is a column in a table?

1061


What is sqlerrd?

921


What is the difference between left outer join and left join?

943


What is a subquery in sql?

975


differentiate between float and double. : Sql dba

989


What sql database should I use?

1072


Define concurrency control. : Transact sql

1103


Does sqlite need a server?

994


Explain cursor types?

955


What kind of join is join?

903


What is hibernate and its relation to sql?

1066