Surrogate and composite primary keys
Posted by: Eslam Elbyaly
Date: January 24, 2018 04:36AM

hi,
Why use composite primary key if I can use a surrogate key?
I am asking because I think it would be easier to reference one column in a where clause i.e than referencing 2 or more columns.
i.e, select .... where surrogate_key =...., rather than
where col1 = and col2 = and col3=......

Options: ReplyQuote


Subject
Written By
Posted
Surrogate and composite primary keys
January 24, 2018 04:36AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.