MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 27th, 1999, 02:17 PM
netman
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I am curious as to how people have designed their databases. Initial design is important, but haven’t seen anywhere that has good examples as to types, sizes, indexes, and keys used on columns of a table.

I think it would be interesting and informative to see what others use for their databases, and/or links to good resources on database design.

Specifically, on a customer table: What size do you make an email field? (I've seen VARCHAR(25) used, but my email is longer than that) What items have you indexed and used as a primary key?

Reply With Quote
  #2  
Old August 29th, 1999, 01:26 AM
esconsult1
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I've tended to make my e-mail fields varchar(64) as this seems to take care of pretty much everything.

In general, to make things fast and safe. You want to make indexes on any field that will appear in the WHERE and ORDER parts of your SQL query.

I've also indexed my ID field and made it auto-increment. Current versions of MySQL however do not manage unique auto-increment numbers properly, so this is something to watch out for, if you have to delete records at some point.

Generally, any SQL book is a good source. I learned a lot on the subject by reading Miriam Liskin's books on Foxpro and Access some years earlier. I've found that her explanations and rationaly on data definitions to be unsurpassed.

[This message has been edited by esconsult1 (edited 08-29-99).]

Reply With Quote
  #3  
Old August 30th, 1999, 05:19 PM
cyrus chu
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I think database design is much more complex for a relational database. MS Access is such a database. Look for the "Building Applications" booklet that comes with MS Access (2.0, 95, or 97).

Reply With Quote
  #4  
Old September 1st, 1999, 01:48 PM
Carolyn
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
If you'd like a terrific book on database design, check out Database Design for Mere Mortals by Michael Hernandez.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Database Design

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap