I'm trying to do the following:
select *
from table
fetch first @param rows only
@param is an int.
DB2 would not have it. I've heard of concatenating it with ||
, but I can't seem to get that to work.
Anyone have experience with this?
(PS I saw a similar question (http://stackoverflow.com/questions/2621420/db2-wont-allow-parameterize-fetch-first-x-rows-only) but didn't understand his approach using ':1'.