mysql> select get_country_code3_by_addr('212.129.63.1');
FRA
mysql> select get_country_name_by_name('www.skyrock.com');
France
mysql> select count(*) from my_test_log where get_country_code_by_addr(ip) != '';
+----------+
| count(*) |
+----------+
| 9470127 |
+----------+
1 row in set (14.45 sec)