Page 1 of 1

How to pull the first occurrence out of a database

Posted: Tue Jun 15, 2010 12:49 pm
by tonykasdorf
I'm creating a query into my database. The query returns 5 rows but I would like to output the data from the first row only. What mysql function could I use that will allow my to output data from the first row?

Re: How to pull the first occurrence out of a database

Posted: Tue Jun 15, 2010 12:50 pm
by AbraCadaver
[text]LIMIT 1[/text]