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...

Please help me how to write a Query to change the primary
key constraint from 1 attribute to another attribute in a
table

Answer Posted / manvendra

ALTER TABLE TABLE_NAME
MODIFY COLUMN (COLUMN2 PRIMARY KEY);

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to rename a tablespace in oracle?

1123


How do you increase the OS limitation for open files (LINUX and/or Solaris)?

1975


What are the differences between date and timestamp in oracle?

1091


How many file formats are supported to export data?

1260


Using the relations and the rules set out in the notes under each relation, write statements to create the two sequence generators specified in the notes.

2172


How to list all indexes in your schema?

1138


What are group functions in oracle?

1091


How to start a new transaction in oracle?

1132


How would you edit your CRONTAB to schedule the running of /test/test.sh to run every other day at 2PM?

1989


What is the fastest query method to fetch data from the table?

1411


What are the oracle built-in data types?

1132


i have a question here... As of my knowledge, when we apply an index (b-tree)on a column, internally it arranges the data in b-tree format and do the fetching process correspondingly... and my quetion is... How a bit-map index arranges the data internally when applied on a column?IS it in b-tree format or whatelse?

2005


How to create a new table in oracle?

1225


How to define an anonymous procedure with variables?

1235


What is the relationship among database, tablespace and data file?

1032