select date_created from smc_log_messages where rownum =1
order by date_created desc
,並返回像
15-SEP-16 10.15.49.099000000 PM
日期然而,當我運行
select date_created from smc_log_messages
order by date_created desc
我看數據像
30-SEP-16 12.39.00.006000000 AM
30-SEP-16 12.38.59.997000000 AM
因此,基本上添加rownum會影響結果。難道我做錯了什麼?
你可以通過desc – Beginner