"Ron McKeever" <[EMAIL PROTECTED]> wrote on 29/04/2005 14:09:38:

> I have a TEXT field in my db (4.0) that has lists of IP numbers; can a
> full-text search be done for IP numbers?

Unfortunately not, because Fulltext regards the dots as terminators. The 
IP address 192.168.32.2 will therefore be keyed as the four "words" 192, 
168, 32, and 2. Since some of these fall below the minimum word length, 
they will be ignored.

However, you might look at the functions INET_NTOA() and INET_ATON() which 
convert between the string and 32-bit binary representations of an IP 
address.

http://dev.mysql.com/doc/mysql/en/miscellaneous-functions.html

        Alec


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to