Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT
- l.*,
- i.i_co
- FROM logs AS l
- INNER JOIN ip_country i
- ON (i_f <= REPLACE(l_radd, '.', '')
- AND i_t >= REPLACE(l_radd, '.', ''))
- WHERE l_gid = 'mygid'
- ORDER BY l_time DESC
- LIMIT 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement