google_ad_clIEnt = "pub-6430022987645146";google_ad_width = 160;google_ad_height = 600;google_ad_format = "160x600_as";google_cpa_choice = "CAEaCIxsmjE5mLWmUDRQHVAFUAdQLFAMUANQnQJQL1AU";google_color_border = "336699";google_color_bg = "FFFFFF";google_color_link = "0000FF";google_color_text = "000000";google_color_url = "008000";
google_ad_client = "pub-6430022987645146";google_ad_slot = "6984174763";google_ad_width = 160;google_ad_height = 600;google_ad_clIEnt = "pub-6430022987645146";google_ad_slot = "3992485859";google_ad_width = 468;google_ad_height = 60;
Oracle不支持類似於 MySQL 中的 limit. 但你還是可以rownum來限制返回的結果集的行數.
如果你只希望返回前十行紀錄,你可以這樣寫:
SELECT * FROM table WHERE ROWNUM< 10;
但是下面的語句是不對的:
SELECT * FROM table WHERE ROWNUM >90 AND ROWNUM< 100;
這是因為 Oracle 認為這個條件不成立,所以沒有返回。
你應該這樣寫:
SELECT * FROM table WHERE ROWNUM< 101;
minus
SELECT * FROM table WHERE ROWNUM< 91;