MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
CIO Insight
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:
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
  #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


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway