以下是我的询问:
select c from (select t.*, rownum as rownum_ from t) c
where rownum_ between :firstResult and :maxResults
此处:firstResult
和:maxResults
是我传递给查询的参数。
我正在使用Oracle 11g Express Edition。
答案 0 :(得分:0)
c
这里是表别名,不是列别名。
尝试:
select c.* from (select t.*, rownum as rownum_ from t) c
where rownum_ between :firstResult and :maxResults