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

What is case function?

1088


What is range partitioning?

1014


Can sql developer connect to db2?

1102


What is join view in sql?

987


how to convert dates to character strings? : Sql dba

1249


What is the use of function "module procedure" in pl/sql?

1233


Explain character-manipulation functions?

1174


what is online transaction processing (oltp)? : Sql dba

1038


Write the command to remove all players named sachin from the players table.

1223


What are sql procedures?

1082


what is primary key? : Sql dba

1076


Which tcp/ip port does sql server run on? How can it be changed? : Sql dba

1051


Is grant a ddl statement?

939


Is big data nosql?

1000


What is a heap in sql?

1137