这里记录一下PG中IP类型的数据怎么过滤查找 TIPS:子网掩码:8、16、24、32 方式1 select * from 表名 where 字段名称 <<= inet'ip地址/子网掩码'; 方式2 select * from 表名 where 字段名 >= 'x.x.x.x'::inet and 字段名 <= 'x.x.x.x'::inet;