republican-creole
Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » Webmasters and Developers » MySQL How to structure database?
Search Topic:
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
Problem with YouTube »
« [IE] IE6 acting strange on mom's WIN98 computer  
AuthorAll Replies


Ray
Mahnahmahna
Premium
join:2001-04-02
Mesa, AZ

reply to jayco437
Re: MySQL How to structure database?

said by jayco437 See Profile :

said by aSic See Profile :

So should I create a (seemingly infinite amount of) table for each unique class (date), with rows that contain the name/address/etc data? ...and just regularly drop the old tables (classes) as time passes?
No. No. No.

Create a table, CLASSES. Create a table USERS. Use a "lookup" table, CLASSES_USERS to show which users are signed up for which class. This would allow for users to sign up for multiple classes using the same information.

Couple other ways to do it, but creating tables for each class is a no-no.
When your table names contain data, that's a code smell.
--
ON DELETE CASCADE


jayco437
Premium
join:2001-08-11
Lincoln, NE
Interesting read. I'd never heard of the phrase before, but certainly understand what they're talking about. I like the taxonomy of the different "smells" there. All very common problems (or, solutions? that create more problems)


Tenar

join:2008-01-02
Midland, ON

said by jayco437 See Profile :

Interesting read. I'd never heard of the phrase before, but certainly understand what they're talking about. I like the taxonomy of the different "smells" there. All very common problems (or, solutions? that create more problems)
Yeah an interesting term, I've heard it used in a few blogs here and there. probably related to "information scent" from the SEO world.
Forums » Tech and Talk » OS and Software » Webmasters and DevelopersProblem with YouTube »
« [IE] IE6 acting strange on mom's WIN98 computer  


Thursday, 20-Nov 20:52:38 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 9 years online! © 1999-2008 dslreports.com.
page compression OFF
Most commented news this week
· [198] Obama FCC Selection Team Won't Make AT&T Happy
· [102] DSL's Not Dead Yet
· [78] Zone Alarm Pro Free Just For Today
· [76] Harvard Law Professor Sues RIAA
· [67] New Xbox 360 'Experience' Goes Live
· [61] CRTC Rules Against Indie ISPs In Throttling Dispute
· [51] Cable Grabbing 71% Of New Broadband Customers
· [48] Comcast DOCSIS 3.0 Hits Pacific Northwest In December
· [46] Storm Reviews Come Rolling In
· [44] Comcast Offers 'Bare Bones' 768kbps VoIP Double Play
Most people now reading
· CRTC ruling coming Thursday Nov 20 [TekSavvy]
· Rocky - time to offer VPN service to all your customers [TekSavvy]
· Official news from TekSavvy regarding the CRTC descision [TekSavvy]
· CRTC ruling : 30 day notice and MLPPP? [TekSavvy]
· Big Oil should bail out the Big 3, not us! [General Questions]
· Discussion on CRTC Non-Ruling thus far... [TekSavvy]
· Battle of the 50 f/1.4's. [Digital Imaging Technology]
· [OOL] OOL upgrade to Docsis 3.0 ? Y my internet so fast ? [OptimumOnline]
· Internet Video Trial Sign Up [Verizon FIOS TV]