How do i display only the first few records in a recordset... no paging

How do i display only the first few records in a recordset... no paging

am 15.07.2006 04:44:02 von ryangrayson

How do I display only the first few records in a recordset. I don't
want paging. I just want to list the last few additions to a database
and thats it. Is there a simple way?

Re: How do i display only the first few records in a recordset... no paging

am 15.07.2006 10:00:25 von Mike Brind

ryangrayson@gmail.com wrote:
> How do I display only the first few records in a recordset. I don't
> want paging. I just want to list the last few additions to a database
> and thats it. Is there a simple way?

SELECT TOP n , , FROM

ORDER BY
DESC

The first n is the number of records you want to select. is a
field that defines the order in which the records appear - usually an
incremented ID field.

--
Mike Brind