what is the difference between primary key & foreign key?
Answer Posted / sripathi venkata ramesh
I am Sripathi Venkata Ramesh from Gudivada and the answer
is mentioned below
Primary key: A Primary key is a column or group of columns
used to uniquely identify each row in a table like
It defines the column as a Mandatory column.
The data held across the column must be unique.
By default it creates clustered index.
It does not allow null values and duplicate values
Foreign key: A Foreign key is a column or group of columns
whose values are derived from the primary key of some other
table
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
How many types of tables supported by oracle?
what is a Nested Loop join?
How to list all indexes in your schema?
How to retrieve data from an explicit cursor?
How to use "startup" command to start default instance?
What is transaction control statement and how many types of transaction control statement in Oracle?
How to open and close an explicit cursor in oracle?
What is an oracle function?
For a field in a repeating frame, can the source come from the column which does not exist in the data group which forms the base for the frame ?
What is integrity and what is constraint??Explain with example
How to select all columns of all rows from a table in oracle?
What is a dynamic performance view in oracle?
How to convert a date to char in oracle? Give one example.
What is a dead lock in oracle?
What happens if you lost a data file?