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

State few characteristics of pl/sql?

964


Can a commit statement be executed as part of a trigger?

1036


How does postgresql compare to mysql?

1019


What is a table in a database?

1034


Is crud a cuss word?

1015


What is the difference between count 1 and count (*) in a sql query?

967


Which is faster truncate or drop?

1030


How delete all data from table in sql?

1004


what is a trigger? : Sql dba

1012


Write an sql query to select all records from the table?

1000


Where is all the data on the internet stored?

989


How do I start sql from command line?

1002


how do you know the version of your mysql server? : Sql dba

987


How do I start pl sql?

932


What are the datatypes available in pl/sql ?

1085