SELECT * FROM TABLE
FETCH FIRST x ROWS ONLY

-----Ursprüngliche Nachricht-----
Von: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] 
Im Auftrag von Ryan Hunt
Gesendet: Dienstag, 5. September 2006 16:03
An: midrange-l@xxxxxxxxxxxx
Betreff: Limiting Result Set To One Record

Does DB2/400 have a SQL construct to limit a recordset?  In MS SQL Server
(T-SQL) I can use the "SELECT TOP n col1, col2, from table" syntax or I can
limit the record set returned to the client by using "SET ROWCOUNT = n"
before executing the select statement.

Is there something similar for the 400?




This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.