On Tue, 27 Dec 2005 23:25:37 +0200, Eugene <[EMAIL PROTECTED]> wrote: >SELECT * FROM ipdb2 WHERE '3229285376' BETWEEN ipfrom AND ipto;
If your [ipfrom, ipto] ranges are non-overlapping, you might be able to exploit that fact by adding something like ... ORDER BY ipfrom DESC LIMIT 1 Servus Manfred ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster