At 8:36 PM -0500 9/14/01, Deryck Henson wrote:
>I need to know the type of data to use for me to put in an IP Address. I
>tried INT and BIGINT. Neither worked HELP! I need this for my database
>bad!
If you expect to represent them in dotted-quad notation, use CHAR(15).
If you want to represent them as integers, you'll need to convert
dotted quad values. You may find the INET_NTOA() and INET_ATON()
functions helpful for converting back and forth.
http://www.mysql.com/doc/M/i/Miscellaneous_functions.html
>
>- Deryck H
>- http://www.comp-u-exchange.com
--
Paul DuBois, [EMAIL PROTECTED]
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php