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

From: Date: Mon, 02 Mar 2009 21:39:47 +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  Groups: php.general 
Request: Send a blank email to php-general+get-289080@lists.php.net to get a copy of this message
Wait, wait, wait... I know SQL Server doesn't have "LIMIT", but haven't you guys ever used "TOP"? As in... select top 10 * from some_table where some_column = 'some_value';
FWIW you have to do a similar thing in oracle. select * from table where rownum <= 5; <-- get 5 rows. to use a limit & offset it's back to the subquery. select * from (select * from table where rownum <=100 ) where rownum >= 80; <-- get rows 80 -> 100. I found the o'reilly book "sql cookbook" really handy for working with multiple db's - it outlines a lot of differences and how you do the same thing in each db. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#289080) next »