---
title: "mysql ip区间"
author: "chenhongquan"
date: "2013-06-20T10:57:01Z"
tags: []
categories: ["数据库"]
slug: "mysql-ip"
draft: false
lastmod: "2013-06-20T10:57:01Z"
id: 1889936
url: "https://findlook.iteye.com/blog/1889936"
---

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