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

create table table_name as ( select * from old_table where 1=2)

from this query we can create a new table structure from old
table structure with out data

Is This Answer Correct ?    26 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is indexes?

1048


Explain what is a column in a table?

1084


What is the requirement of self-join?

1100


How can triggers be used for the table auditing?

1049


What is sql procedures and functions?

992


Cite the differences between execution of triggers and stored procedures?

1072


How delete all data from table in sql?

1004


What are different types of tables in sql?

978


Describe types of sql statements?

1046


What type of join is sql join?

963


What is sqlcontext?

1060


Explain constraints in sql?

1028


What are pl sql procedures?

1014


Do prepared statements prevent sql injection?

933


How do I run a script in sql developer?

935