一个有关oracle分页sql的问题,在线等候。
1:问题:
Connected to Oracle8 Release 8.0.5.0.0
Connected as system
SQL> select * from ( select t.message_id,t.modify_time,rownum as no from message_information t ) where no >30 ;
MESSAGE_ID MODIFY_TIME NO
--------------------------------------- ------------------------- ----------
1565 2004-02-02 10:32 31
1566 2004-01-31 10:31 32
1573 2004-01-31 10:39 33
1575 2004-01-31 10:41 34
1574 2004-01-31 10:40 35
1576 2004-01-31 10:41 36
1577 2004-01-31 10:42 37
1578 2004-01-31 10:42 38
1571 2004-01-31 10:38 39
1570 2004-01-31 10:38 40
1572 2004-01-31 10:39 41
1568 2004-01-31 10:38 42
1567 2004-01-31 10:31 43
1569 2004-01-31 10:38 44
14 rows selected
SQL> select * from ( select t.message_id,t.modify_time,rownum as no from message_information t order by t.modify_time ) where no >30 ;
select * from ( select t.message_id,t.modify_time,rownum as no from message_information t order by t.modify_time ) where no >30
ORA-00907: 缺少右括号
2:环境
表message_information的modify_time字段为VARCHAR2(25)