Re: Help with a SELECT query

2006-01-06 Thread Stefan Hinz
: Jay Paulson (CE CEN); Gleb Paharenko; mysql@lists.mysql.com; [EMAIL PROTECTED] Subject: Re: Help with a SELECT query [1] The reasoning behind this: Is it relevant for a 5.0 user to know that INET_ATON() was introduced in 3.23.15? We don't think it is, and many users had complained that th

RE: Help with a SELECT query

2006-01-06 Thread Jay Paulson \(CE CEN\)
-Original Message- From: Stefan Hinz [mailto:[EMAIL PROTECTED] Sent: Fri 1/6/2006 12:40 PM To: Michael Stassen Cc: Jay Paulson (CE CEN); Gleb Paharenko; mysql@lists.mysql.com; [EMAIL PROTECTED] Subject: Re: Help with a SELECT query [1] The reasoning behind this: Is it relevant for a 5.0 use

Re: Help with a SELECT query

2006-01-06 Thread Stefan Hinz
Michael, thanks for your feedback! Jay Paulson (CE CEN) wrote: This helps a ton! Thanks! I didn' tknow about the INET_NTOA() or the INET_ATON() functions. That is much quicker to query on them than on a char set of ips. However, I did notice on the mysql web site that these functions are on

Re: Help with a SELECT query

2006-01-06 Thread Gleb Paharenko
Hello. These functions are available in 4.1.16 as well: mysql> select inet_aton('192.168.0.1'); +--+ | inet_aton('192.168.0.1') | +--+ | 3232235521 | +--+ 1 row in set (0.06 sec) mysql> select version

Re: Help with a SELECT query

2006-01-06 Thread Michael Stassen
Jay Paulson (CE CEN) wrote: This helps a ton! Thanks! I didn' tknow about the INET_NTOA() or the INET_ATON() functions. That is much quicker to query on them than on a char set of ips. However, I did notice on the mysql web site that these functions are only available in 5.x but the way the page

RE: Help with a SELECT query

2006-01-06 Thread Jay Paulson \(CE CEN\)
harenko [mailto:[EMAIL PROTECTED] Sent: Fri 1/6/2006 5:28 AM To: mysql@lists.mysql.com Subject: Re: Help with a SELECT query Hello. Usually working with IP addresses in a numeric form is faster. Use INET_NTOA() and INET_ATON() functions to store IP addresses as unsigned ints. To work w

Re: Help with a SELECT query

2006-01-06 Thread Gleb Paharenko
Hello. Usually working with IP addresses in a numeric form is faster. Use INET_NTOA() and INET_ATON() functions to store IP addresses as unsigned ints. To work with subnetworks instead of "like 'xxx.xxx.%'" use "ip_address_in_numeric_form between inet_aton('xxx.xxx.0.0') and inet_aton('xxx