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

select * into <new table name> from < old tablename> where
<any false condition>
ex: new table name "emp"
Old table name "dept"
select * into emp from dept where 2=5
then it will display only the structure of the old
table,not the data

Is This Answer Correct ?    3 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sql in java?

1082


How long does it take to learn pl sql?

1059


What is an ndf file?

992


How can we make an if statement within a select statement?

1013


What is clause?

1149


Compare sql & pl/sql

1136


How do I write a sql query in pgadmin 4?

982


how to get help information from the server? : Sql dba

939


Explain sql data types?

1093


Why do we use procedures in pl sql?

1039


What does pl sql developer do?

924


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

1182


How do I add a database to sql?

1125


What are the basic sql commands?

1090


What is the sql case statement?

1001