rownum 和 order by 的问题?
select in_time from work_task
where (state=190) and in_time>to_date(to_char(add_months(sysdate,-12),'yyyy-mm'),'yyyy-mm') and rownum<=1 order by in_time desc
查出的数据是:
2010-03-23 17:31:17
删除rownum<=1后查出来的数据是
2010-03-23 22:39:33
2010-03-23 17:43:31
2010-03-23 17:31:17
为什么有加rownum<=1时,不是查出2010-03-23 22:39:33??
...全文


基础和管理
