Serge Rielau wrote:
No, here is how to do it:
SELECT c1 FROM (SELECT c1, ROW_NUMBER() OVER() AS rn FROM T) AS S WHERE
rn <= ?
this can be extended to e.g. ... OVER(ORDER BY c2)
Any idea about the performance in comparision to a simple "fetch first
10 rows only"?
If it makes a performance difference I prefer the static variant - I'm
not playing with toys here :)
Bernd
--
"Ja, alles meine Herren" sprach Fürst Lichnowsky. "Ooch det roochen?"
"Ja, auch das Rauchen." "Ooch im Tiergarten?" "Ja, auch im Tiergarten
darf geraucht werden, meine Herren." Und so endeten die Barrikadenkämpfe
des 18. März in Berlin