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...

what command is used to create a table by copying the
structure of another table including constraints ?

Answer Posted / a.jyothsna

I know copying the structure of one table but not the
constraints also:
create table newtablename as
select * from oldtablename;

with the above query total data will also be copied.
But to copy only the structure.

create table newtablename as
select * from oldtablename
where 1=2;

Is This Answer Correct ?    20 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dml statement?

957


what are date and time intervals? : Sql dba

1058


What is sql analyzer?

1025


What is sql prepared statement?

987


How much does sqlite cost?

1040


What is use of term?

1068


How bulk collect improves performance?

1006


What are inner outer left and right joins in sql?

1016


What problem one might face while writing log information to a data-base table in pl/sql?

1166


How many types of relationship are there?

1031


What are the advantages of pl sql?

1122


Why do we create views in sql?

1154


what are the advantages of mysql in comparison to oracle? : Sql dba

1004


what happens if you no create privilege in a database? : Sql dba

1001


What is substitution variable?

1053