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 left inner join in sql?

1042


What are the two characteristics of a primary key?

974


What is difference between primary and secondary key?

1025


What is dialect in sql?

946


Why partition by is used in sql?

1038


What does bitemporal mean?

1065


Is it possible to update views?

959


What is character functions?

1061


What is PL/SQL Records?

1189


how can we destroy the session, how can we unset the variable of a session? : Sql dba

997


What is memory optimized?

1084


how many tables will create when we create table, what are they? : Sql dba

1073


What is sql rowcount?

1016


what is dbms? : Sql dba

994


Can we insert delete data in view?

950