[thelist] ASP: Select only the first record

Kristof Neirynck k.neirynck at belgacom.net
Fri Jun 20 22:14:53 CDT 2003


> "SELECT * FROM news ORDER BY date DESC LIMIT 1"

That's for MySql.

when you're working with an access database it is

"SELECT TOP 1 * FROM news ORDER BY date DESC"


Kristof



More information about the thelist mailing list