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 / chandana

YOU CANNOT CHANGE THE CONSTRAINTS DIRECTLY ON A COLUMN.
FIRST DROP THE CONSTARINT U HAVE CREATED AND THEN USE ALTER
COMMAND TO ADD CONSTARINT TO THE CORRECT COLUMN.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is oracle a programming language?

759


What is the difference between sharding and replication?

699


How to declare a local variable?

822


How do you tell what your machine name is and what is its IP address?

1767


How to do clean up if create database failed?

800


How to use windows user to connect to the server?

745


What is different types of joins?

779


Explain cascading triggers.

818


Can we use bind variables in oracle stored procedure?

705


What is a Garbage Collection? and what is full recursive Garbage collection?

2627


How do I spool to a csv formatted file using sqlplus?

726


What do the 9i dbms_standard.sql_txt() and dbms_standard.sql_text() procedures do?

4312


What is bulk copy or bcp in oracle?

846


Will you be able to store pictures in the database?explain.

755


What do you mean by merge in oracle and how can you merge two tables?

742