目前專案,由oracle 8i剛轉到10g,但陸續發現有些程式怎麼跑出來的資料順序跟8i的不一樣?

原來發現、有問題的都是select ... 但無order by...

怎麼會這樣。
找了很久,終於在oracle official 網站找到佐證,如下:

Oracle® Database SQL Reference 10g Release 2 (10.2)

Select statment 有提到

order_by_clause

Use the ORDER BY clause to order rows returned by the statement.

Without an order_by_clause, no guarantee exists that the same query executed more than once will retrieve rows in the same order.

參考網址:
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/toc.htm

arrow
arrow
    全站熱搜

    味味A 發表在 痞客邦 留言(0) 人氣()