2009-06-24 3 views

Antwort

11

Ich denke, ich habe es herausgefunden. Benötigt, so etwas zu tun ...

SELECT * FROM table ORDER BY col ROWS 1

4

Gemäß der akzeptierte Antwort:

SELECT * FROM table ORDER BY col ROWS 1 

Wird nur ein Ergebnis zurück. Es gibt auch mehrere andere Reihe Einschränkungen zur Verfügung:

 
ROWS n  Returns the first n rows of the result set, or n percent if used with PERCENT 
ROWS m TO n Returns rows m through n, inclusive or the mth to nth percent 
ROWS n BY p Returns every pth row of the first n rows 

Diese für den ausgelagerten Ergebnisse besonders praktisch ist.

Aus dem Embedded SQL-Handbuch auf der Seite InterBase Product Documentation:

Verwandte Themen