Kevin Waterson
2003-10-13 07:51:30 UTC
I am trying to switch my db from mysql and have a start field
of IP addresses and a length field of the length of the IP net.
eg:
start would have a value of 202.1.33.3
length would have a value of 4096
In mysql I would do something like
SELECT * FROM tablename WHERE inet_aton("127.0.0.1") BETWEEN inet_aton(start) AND inet_aton(start)+length
How can I do something similar with sqlite?
Kind regards
Kevin
--
______
(_____ \
_____) ) ____ ____ ____ ____
| ____/ / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \____) \_||_| \____) \____)
Kevin Waterson
Port Macquarie, Australia
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/ArdFIC/hP.FAA/3jkFAA/EbFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
sqlite-unsubscribe-***@public.gmane.org
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
of IP addresses and a length field of the length of the IP net.
eg:
start would have a value of 202.1.33.3
length would have a value of 4096
In mysql I would do something like
SELECT * FROM tablename WHERE inet_aton("127.0.0.1") BETWEEN inet_aton(start) AND inet_aton(start)+length
How can I do something similar with sqlite?
Kind regards
Kevin
--
______
(_____ \
_____) ) ____ ____ ____ ____
| ____/ / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \____) \_||_| \____) \____)
Kevin Waterson
Port Macquarie, Australia
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/ArdFIC/hP.FAA/3jkFAA/EbFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
sqlite-unsubscribe-***@public.gmane.org
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/