Thread: Database Design

  1. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    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?
  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    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).]
  4. #3
  5. No Profile Picture
    cyrus chu
    Devshed Newbie (0 - 499 posts)
    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).
  6. #4
  7. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    If you'd like a terrific book on database design, check out Database Design for Mere Mortals by Michael Hernandez.

Similar Threads

  1. Customer database design
    By sikkert in forum MySQL Help
    Replies: 3
    Last Post: July 1st, 2003, 09:48 AM
  2. database design question
    By birdguy in forum Database Management
    Replies: 1
    Last Post: June 9th, 2003, 12:02 PM
  3. Question regarding keyword checkboxes in database design
    By spidersilk in forum PostgreSQL Help
    Replies: 1
    Last Post: June 7th, 2003, 03:29 AM
  4. How do I clone my development database design?
    By Jack101 in forum MySQL Help
    Replies: 3
    Last Post: October 23rd, 2002, 03:37 AM
  5. For MySQL database design and implementation
    By huangy in forum MySQL Help
    Replies: 0
    Last Post: August 2nd, 2001, 09:46 AM

IMN logo majestic logo threadwatch logo seochat tools logo