RE: [PHP] SQL SERVER QUESTION
| From: | Clint Tredway | Date: | Thu, 12 Jun 2003 02:38:01 +0000 |
| Subject: | RE: [PHP] SQL SERVER QUESTION | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151188@lists.php.net to get a copy of this message | ||
How about the need to add prices together, or store binary data, or using a
bit for true false...
There are numerous reasons for datatypes in a database.
HTH,
Clint
-----Original Message-----
From: Dale [mailto:DaleHersh@hotmail.com]
Sent: Wednesday, June 11, 2003 8:43 PM
To: php-general@lists.php.net
Subject: [PHP] SQL SERVER QUESTION
I am still new to web programming. I have a question regarding sql
databases. Since variables in php don't require a type, why is it so
important that you specify a type for each of the colomons in your tables in
your sql database. It seems to me that you could potentially make everything
chars and it wouldn't make a difference. The only real benefit is that I
have seen that by making a column of type date, it allows you to easily
compare dates. I don't see the benefit of making a colomon of type money
though?
Thanks,
Dale
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php