select ip from t_ip where inet_aton(ip) between inet_aton('192.168.11.1') and inet_aton('192.168.11.150')这样就能有效比较查出数据了