Re: how to get the Nth record of a result ?

2003-01-27 Thread Alec . Cawley


> I'm trying to get the Nth record of a query which i don't know nothing
> but the table name.

> I mean something like select * from table where  . "give
> me the Nth result";

SELECT * FROM table LIMIT N,1 ;


  Alec




-
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 <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: how to get the Nth record of a result ?

2003-01-27 Thread Gelu Gogancea
Hi,

select * from table where  LIMIT HOW_MANY_RESULT_YOU_WISH;

Regards,

Gelu
_
G.NET SOFTWARE COMPANY

Permanent e-mail address : [EMAIL PROTECTED]
  [EMAIL PROTECTED]
- Original Message -
From: "alx" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 27, 2003 12:17 PM
Subject: how to get the Nth record of a result ?


> HI all
> I'm trying to get the Nth record of a query which i don't know nothing
> but the table name.
>
> I mean something like select * from table where  . "give
> me the Nth result";
>
> I hope someone can help me.
>
> TIA
> Bye
> Alx
>
>
> -
> 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 <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>


-
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 <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: how to get the Nth record of a result ?

2003-01-27 Thread daniel
will a LIMIT start,end work ?
>= Original Message From alx <[EMAIL PROTECTED]> =
>HI all
>I'm trying to get the Nth record of a query which i don't know nothing
>but the table name.
>
>I mean something like select * from table where  . "give
>me the Nth result";
>
>I hope someone can help me.
>
>TIA
>Bye
>Alx
>
>
>-
>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 <[EMAIL PROTECTED]>
>To unsubscribe, e-mail 
<[EMAIL PROTECTED]>
>Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



-
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 <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: how to get the Nth record of a result ?

2003-01-27 Thread Joseph Bueno
Hi,
select * from table where  LIMIT N,1
More details at:
http://www.mysql.com/doc/en/SELECT.html

Regards,
Joseph Bueno

alx wrote:

HI all
I'm trying to get the Nth record of a query which i don't know nothing
but the table name.

I mean something like select * from table where  . "give
me the Nth result";

I hope someone can help me.

TIA
Bye
Alx


-
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 <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




-
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 <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




how to get the Nth record of a result ?

2003-01-27 Thread alx
HI all
I'm trying to get the Nth record of a query which i don't know nothing
but the table name.

I mean something like select * from table where  . "give
me the Nth result";

I hope someone can help me.

TIA
Bye
Alx


-
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 <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php