Re: Database question

From: Date: Wed, 21 Aug 2002 01:15:14 +0000
Subject: Re: Database question
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-21265@lists.php.net to get a copy of this message
Shiloh Madsen wrote:
I was wondering if there were any good documents out there about good database design...I know the basics of creating tables, setting data types and such, and now i want to know how to use it to the best effect...generating logical, streamlined tables, etc.
have you got a lifetime? seriously, just google it. say "relational database design" and start from there. or pick up some college text book on that subject
As a side-related note, i have a few tables now that call for some data which could be quite lengthly, say 3-6 paragraphs worth of text. what would be the best data style and length for this kind of field?
you can use either TEXT, MEDIUMTEXT or LONGTEXT. 64K, 16 million and 4 billion bytes, respectively... the downside is the space taken up when the actual data is less than the field size. then there's VARCHAR. the downside is that it's limited to 255 bytes... good news is that it's N+1 byte size. -- Leo G. Divinagracia III ldivinag@csuhayward.edu

« previous php.db (#21265) next »