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

What are the types of views in sql?

1039


Why we use join in sql?

915


What do you understand by exception handling in pl/sql?

961


What is difference between ms sql and mysql?

910


Why truncate is faster than delete?

1053


How to select all records from the table?

1067


what is the difference between rownum pseudo column and row_number() function? : Sql dba

1019


Which table is left in join?

914


What is foreign key sql?

943


How to rename a table?

956


difference between anonymous blocks and sub-programs.

1080


Explain the advantages and disadvantages of stored procedure?

1076


What is difference between nchar and nvarchar?

956


What is orm in sql?

992


How do we use distinct statement? What is its use?

976