View Full Version : Primary & foreign keys field types


teiben
05-15-2010, 07:12 AM
I have always used integers or auto numbers as primary and foreign keys. Currently for a school project using oracle and sql plus, I have to code a db the instructions are to make all the pk and fk strings, though it was never explained why, can anyone explain to me why this would be better? is it an oracle thing?

HiTechCoach
05-15-2010, 10:36 AM
I have always used integers or auto numbers as primary and foreign keys. Currently for a school project using oracle and sql plus, I have to code a db the instructions are to make all the pk and fk strings, though it was never explained why, ...
[/QUOTE]

The best person to ask woudl be the person giving you the project.

It could be to see if you follow instructions.



... can anyone explain to me why this would be better? is it an oracle thing?

That is hard to answer without a lot more details.

gemma-the-husky
05-16-2010, 01:23 PM
if its just a project, do what they ask.

they are just testing some basic skills, not producing a production quality database.