假如有一个ip地址:212.185.112.6 double ip=212*256*256*256+185*256*256+112*256-1 sqlstr=select * from ipaddress where ip1<=ip and ip2>=ip