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 many types of sql are there?

991


How can we connect an Android App to an Oracle database and use the PL/SQL procedural code?

1144


What is the use of prepared statement?

1028


What is not null in sql?

1061


what are ddl statements in mysql? : Sql dba

1207


What are the qualities of 2nf?

1040


What is native sql query?

1027


What is a behavioral trigger?

980


Why do we use sql constraints?

1175


Mention what are different methods to trace the pl/sql code?

1217


What are procedures used for?

991


What is the difference between an inner join and an outer join?

1029


what are all the common sql function? : Sql dba

1062


What is set serveroutput on?

1140


How to sort the rows in sql.

1080