我该怎么查询所属段的counter

pipifirst 2011-02-20 11:49:50
表(ip)

startip endip counter
0 50331647 IANA
50331648 67108863 通用电气
. . .
. . .
. . .
. . .
. . .

比如ip:184549375
我该怎么查询所属段的counter

谢谢@!
...全文
42 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
lzp4881 2011-02-20
  • 打赏
  • 举报
回复
dim ip
ip="184549375"
SQL="select [counter] from [ip] where startip<'"&ip&"' and endip>'"&ip&"'"
pipifirst 2011-02-20
  • 打赏
  • 举报
回复
dim ip
ip=184549375
SQL="select counter from [ip] where startip<'"&ip&"' and endip>'"&ip&"'"

错误啊!

哪不对?
lzp4881 2011-02-20
  • 打赏
  • 举报
回复
select counter from 表 where startip<184549375 and endip>184549375

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧