Re: SQL SERVER QUESTION
| From: | Brian McGarvie | Date: | Thu, 12 Jun 2003 08:47:43 +0000 |
| Subject: | Re: SQL SERVER QUESTION | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151210@lists.php.net to get a copy of this message | ||
Or the fact that various datatypes take up various storage needs....
"Clint Tredway" <ctredway@fishermenstudios.com> wrote in message
news:DPEJLOPECBDBKKDOHALOGEIOCMAA.ctredway@fishermenstudios.com...
> 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
>
>
>
>