怎么取出IP地址段里面所有IP地址如:A栋规划地址段192.168.0.1——192.168.0.254 ;已使用192.168.0.123判断这个地址就是A栋的
自己写张表,在根据ip和表里的数据匹配
就比较第四部分就行,首先根据.进行切割分成四部分,比较第四部分是否大于等于1,且小于等于123
if(REPLACE("192.168.0.123",".","")*1>=REPLACE("192.168.0.1",".","")*1&&REPLACE("192.168.0.123",".","")*1<=REPLACE("192.168.0.254",".",""),"A栋","非A栋")