[CDBI] Fwd: find_or_create() barfs with constraints

Johnny Morano jmorano at moretrix.com
Wed Aug 3 12:29:04 BST 2005


Isn't the primary key supposed always to be unique?

quote: 'The primary key of a relational table uniquely identifies each
record in the
table.' (http://databases.about.com/cs/administration/g/primarykey.htm)

So if you're using multiple columns for PK, the combination of those
columns (values) must unique.

Correct me if I'm wrong of course ;-)

cya




More information about the ClassDBI mailing list