If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > constraint naming schemes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-31-09, 17:02
rbfree rbfree is offline
Registered User
 
Join Date: Feb 2009
Posts: 104
constraint naming schemes

Is there a preferred rationale for naming constraints?

Is there a relevant name length maximum?

I was thinking about tagging the name of the table to the end of my constraint names to make them unique -- always (I'm thinking) below 40 characters. The table name for the below eg. is bioprocessors.
Code:
CONSTRAINT biomasstypeID_fk_bioprocessors
     FOREIGN KEY (biomasstypeID)
          REFERENCES biomasstypes (biomasstypeID)
,
__________________
In theory, there is no difference between theory and practice. In practice there is.
Disputed Origins

Ninety-three percent of all statistics are made-up on the spot.
Ancient proverb.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On