Forum Moderators: DixonJones
1) use a wildcard instead of the "left" operator like this:
"select * from pageviews where ip like '64.68%' ..."
I'm not sure what good it will do, but it's more the way I do it.
2) find out more about the IP addresses that (useragents that identify themselves as) googlebot uses: "select distinct ip from pageviews where useragent like 'Googlebot%'". That way, you can make sure that your wildcard above encompasses all necessary IP addresses.
3) I just use the useragent to pull stuff out:
"select timeserved, concat(server, urlpath), useragent, remoteip from requests where useragent like 'Google%' order by timeserved"
4) Randal Schwartz may have some more hints for you: [stonehenge.com...]