Re: Yes or No
| From: | Dobromir Velev | Date: | Tue, 02 Oct 2001 10:06:24 +0000 |
| Subject: | Re: Yes or No | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-12910@lists.php.net to get a copy of this message | ||
Hi,
there is no difference both char(1) and enum(0,1,...,255) use 1 byte
storage space - so if you feel more comfortable with the ENUM field type use
it.
DObromir Velev
-----Original Message-----
From: Jordan Elver <jord@theinternetone.co.uk>
To: MySQL Mailing List <mysql@lists.mysql.com>; PHP DB Mailing List
<php-db@lists.php.net>
Date: Tuesday, October 02, 2001 12:24 PM
Subject: [PHP-DB] Yes or No
>Hi,
>If I wanted to define a table to have a cloumn which is either yes or no
for
>example. Would it be better to use a single char (0 or 1), or can I use an
>enum (I find them more friendly ;)).
>
>Could you offer some advice?
>
>Thanks,
>
>Jord
>--
>Jordan Elver
>Web Developer
>The InternetOne UK Ltd
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
>For additional commands, e-mail: php-db-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>