MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:Gelu Gogancea Date:November 26 2002 3:55pm
Subject:Re: SQL Row Counting in MySQL
View as plain text  
Hi,
Select * from Blah where stuff="true" limit 10;

Regards,

Gelu
_____________________________________________________
G.NET SOFTWARE COMPANY

Permanent e-mail address : gg@stripped
                                          gelugogancea@stripped
----- Original Message -----
From: "Tom Place" <tom@stripped>
To: <mysql@stripped>
Sent: Tuesday, November 26, 2002 5:01 PM
Subject: SQL Row Counting in MySQL


> Hi All,
>
> Is there a simple way in MySQL to only select the first x rows that meet
> a specified criteria.
>
> For example in Oracle the following would work:
>
> Select * from Blah where stuff="true" and rownum <= 10
> (where rownum is not a specific column, just a count of how many rows
> have been returned)
>
> But MySQL doesn't like this.
>
> Anyone know the correct way to approach this??
>
> Cheers
>
> Tom
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <mysql-thread125840@stripped>
> To unsubscribe, e-mail <mysql-unsubscribe-ggelu=arctic.ro@stripped>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>

Thread
Grant - questionsDarryl Hoar26 Nov
  • Re: Grant - questionsIikka Meriläinen26 Nov
  • SQL Row Counting in MySQLTom Place26 Nov
    • Re: SQL Row Counting in MySQLPae Choi26 Nov
    • Re: SQL Row Counting in MySQLJoakim Andersson26 Nov
    • Re: SQL Row Counting in MySQLGelu Gogancea26 Nov
    • re: SQL Row Counting in MySQLVictoria Reznichenko26 Nov
    • Re: SQL Row Counting in MySQLSteve Yates26 Nov
  • re: Grant - questionsVictoria Reznichenko26 Nov
Re: SQL Row Counting in MySQLAlec.Cawley26 Nov