Mysql Like %..% operator
#6

Quote:
Originally Posted by BlowUP
View Post
but with LIKE % i can find ip's starting with 127.0 only example
Since you explicitly mention IPs, consider saving them in integer format because this gives you additional possibilities to search. You can do:
PHP Code:
... WHERE ip BETWEEN INET_ATON('172.16.0.0') AND INET_ATON('172.31.255.255'); 
Which would be shear impossible to accomplish with LIKE. See my tutorial for a more elaborate explanation.
Reply


Messages In This Thread
Mysql Like %..% operator - by BlowUP - 05.11.2015, 13:10
Re: Mysql Like %..% operator - by jeffery30162 - 05.11.2015, 13:25
Re: Mysql Like %..% operator - by BlowUP - 05.11.2015, 13:36
Re: Mysql Like %..% operator - by Lordzy - 05.11.2015, 13:36
Re: Mysql Like %..% operator - by BlowUP - 05.11.2015, 13:40
Re: Mysql Like %..% operator - by Vince - 05.11.2015, 15:14

Forum Jump:


Users browsing this thread: 3 Guest(s)