Re: Re: How important is your Express or Web Edition database? Please weigh in--

From: Date: Tue, 03 Mar 2009 00:23:09 +0000
Subject: Re: Re: How important is your Express or Web Edition database? Please weigh in--
References: 1 2 3 4 5 6 7 8 9  Groups: php.general 
Request: Send a blank email to php-general+get-289104@lists.php.net to get a copy of this message
There isn't a BOTTOM, the solution looks something like this: SELECT * FROM (SELECT TOP 10 * FROM (SELECT TOP 20 * FROM table WHERE clause ORDER BY col) AS temp ORDER BY col DESC) as temp2 ORDER BY col It's an awful mess, but was the only way I found to select results x to y in a reliable manner.
Does this work? select field from ( select row_number() over (order by field) as rn, field
    from table
) x where rn between 6 and 10; (what the o'reilly "sql cookbook" suggests will work). -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#289104) next »