MySQL Forums
Forum List  »  Docs

Foreign key data type
Posted by: Mohammad Saberi
Date: September 02, 2011 02:07AM

I'm working on a project that needs to have relations.
Some of its table have primary keys that will fill with digits. But they are not incremental. In fact, they are characters.
My question is:
Can I declare some fields that will role as a foreign key or primary key with varchar data type ?

Options: ReplyQuote


Subject
Views
Written By
Posted
Foreign key data type
4118
September 02, 2011 02:07AM


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.