On Thu, 19 Dec 2002, mustakim abas wrote:

> Hello, i am new in mysql. I got a problem. I try write
> my C program with mysql API.I have 5 field in
> table.No,Name,Phone,Date,Time. How can i take one row
> where the No is bigger?
> Thanks for help.

Provided I understand your question, then I would suggest:

SELECT * FROM mytable WHERE No > somevalue LIMIT 1;

Then 'somevalue' would be the value of 'No' from your last query.

Thomas
-- 
sql,query


---------------------------------------------------------------------
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

Reply via email to