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 / saurabh agrawal

We can only copy the structure of the table and not the
constraints.
Syntax is as below:
Create table newtablename as select * from oldtablename;

In this way only NOT NULL constraint specified on any
column of the OLDTABLE will automatically get copied into
the NEWTABLE but other constraint will have to be created
manually.

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to include character strings in sql statements? : Sql dba

1073


What are the two different parts of the pl/sql packages?

1088


What version is sql?

1035


What is the difference between microsoft sql and mysql?

964


Which tcp/ip port does sql server run?

1009


Which type of cursor is used to execute the dml statement?

958


Why truncate is faster than delete?

1114


What is serial sql?

977


What is embedded sql what are its advantages?

1043


What are pl/sql packages?

1104


Can we rollback delete command?

989


What is trigger explain with example?

1041


How to fix oracle error ora-00942: table or view does not exist

1016


How to use sql*plus built-in timers?

1202


What is pl sql commands?

1047