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

Is pl sql better than sql?

1087


Is sql a case sensitive language?

1009


What happens when a trigger is associated to a view?

971


What is difference between stored procedures and application procedures?

1064


How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?

1146


Can unique keys be null?

949


What is the difference between left and left outer join?

992


What is a sql schema used for?

1153


Does user triggers have entry for trigger with compilation errors?

1090


What is a primary key? Explain

1023


Is delete faster than truncate?

1051


How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?

1490


What is sql and db2?

1053


What is view explain with example?

997


Can we use insert statement in function?

1047