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

In oracle

Create table newtablename as select * from oldtablename
where 1=2
(any false condition if condition true it copies data from
table it applicable for both oracle & sqlserver)

In Sql server

select * into newtablename from oldtablename where 1=2

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to avoid using cursors? What to use instead of cursor and in what cases to do so?

1247


What is the source code of a program?

1118


what is meant by urlencode and urldocode? : Sql dba

1237


what is foreign key? : Sql dba

1107


What is column?

1032


How is a process of pl/sql compiled?

1236


I need a function for a train ticket reservation please answer it thanks in advance

1078


what is bcp? When does it used? : Sql dba

1028


How do you create a unique index?

1092


Is sql a backend?

1071


What is interval partition?

1101


What is a recursive stored procedure?

1253


How to revise and re-run the last sql command?

1218


What is the difference between microsoft sql and mysql?

1017


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

1146