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

Is a foreign key always unique?

921


How do sql databases work?

980


What is a clob in sql?

1001


What is transaction control language (tcl)?

1115


How to run sql commands in sql*plus?

1155


What is the difference between clustered and non-clustered indexes?

1072


What does the file extension accdb stand for?

956


What is dense_rank in sql?

954


What is rownum in sql?

1007


what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba

1036


What is dba in sql? : SQL DBA

1024


how can we repair a mysql table? : Sql dba

956


How delete all records from table in sql?

959


Why stored procedure is better than query?

923


What are sql commands?

988