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

Is sql workbench free?

987


Write the alter statement to enable all the triggers on the t.students table.

1123


What is the example of procedure?

922


Is sql better than excel?

1139


Which table is left in join?

972


which tcp/ip port does sql server run on? : Sql dba

1017


What is exit statement?

1009


explain normalization concept? : Sql dba

1043


What is the use of sql trace?

947


Can you do multiple joins in sql?

1040


What is a system versioned table?

975


What is PL/SQL Records?

1181


Can delete statement be rollbacked?

980


How is a process of pl/sql compiled?

1148


What is interval partition?

1051