Select record between two IP ranges

前端 未结 8 2140
遇见更好的自我
遇见更好的自我 2021-02-19 05:14

I have a table which stores a ID, Name, Code, IPLow, IPHigh such as:

1, Lucas, 804645, 192.130.1         


        
8条回答
  •  [愿得一人]
    2021-02-19 05:45

    Depends on which record you are looking for the high or the low.

    select * from table where IPlow like '192.168.2.50' or IPHigh like '192.168.2.50'
    

提交回复
热议问题