select * from (
select a.*,row_number() over() as rk
from table1 tba
) as foo where rk between 11 and 20
これはデータベーステーブルで機能します。2 つのテーブルを結合したビューを使用しています。rownum を実行しようとすると、「Function not allowed」と表示されます
select * from (
select a.*,row_number() over() as rk
from view1 v1
) as foo where rk between 11 and 20
DB2 の rownum の提案または代替案はありますか?