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 multiple partition?

973


What is the file extension for sql database?

1012


What is difference between table and view?

1070


What are pl sql procedures?

1032


What is informix sql?

985


what are the differences between public, private, protected, static, transient, final and volatile? : Sql dba

1046


Why do we use function in pl sql?

1069


what are dynamic queries in t-sql? : Transact sql

1032


Why do we use procedures in sql?

1093


tell us something about heap tables. : Sql dba

1104


explain what is mysql? : Sql dba

1090


Why do we create views in sql?

1159


What is before trigger?

1010


Is oracle and sql same?

1020


Why cross join is used?

1084