Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Closed Thread
MYSQL Composite Key question
Old 10-22-2008, 05:41 PM MYSQL Composite Key question
millwalll's Avatar
Webmaster Talker

Posts: 674
Name: James
Location: KENT
Trades: 3
Hi all,
I am pretty new to MYSQL and have another question one of my tables has a Composite Key

booking = DelNo*, EventNo*, Eventb&B, bookingFee

Just want to know how I would create a table to show this
as DelNo is used in another table so is EventNo hope that makes sense

many thanks
__________________

Please login or register to view this content. Registration is FREE
millwalll is offline
View Public Profile Visit millwalll's homepage!
 
 
Register now for full access!
Old 10-24-2008, 03:33 PM Re: MYSQL Composite Key question
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
I'm not sure what the question is, but compound keys are allowed, and in some cases they're appropriate. You might want to consider a surrogate key instead, though - in your case it looks like it would offer better performance and scalability.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
View Public Profile
 
Closed Thread     « Reply to MYSQL Composite Key question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09415 seconds with 12 queries