全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:3124
推到 Plurk!
推到 Facebook!

請問 oracle SQL 語法

答題得分者是:Mickey
hazard
一般會員


發表:30
回覆:24
積分:10
註冊:2006-10-28

發送簡訊給我
#1 引用回覆 回覆 發表時間:2002-12-31 12:11:20 IP:61.221.xxx.xxx 未訂閱
請問在oracle 上有類似informix 中的 「Set isolation to dirty read」& 「Set isolation to committed read」語法嗎 ??
andersonhsieh
版主


發表:33
回覆:531
積分:439
註冊:2002-06-10

發送簡訊給我
#2 引用回覆 回覆 發表時間:2002-12-31 13:57:58 IP:211.23.xxx.xxx 未訂閱
引言: 請問在oracle 上有類似informix 中的 「Set isolation to dirty read」& 「Set isolation to committed read」語法嗎 ??
可以說明一下以上兩個功能主畏在做什麼用的 @@~~飛翔在天際的精靈~~@@
------
@@~~飛翔在天際的精靈~~@@
hazard
一般會員


發表:30
回覆:24
積分:10
註冊:2006-10-28

發送簡訊給我
#3 引用回覆 回覆 發表時間:2002-12-31 14:05:54 IP:61.221.xxx.xxx 未訂閱
引言:
引言: 請問在oracle 上有類似informix 中的 「Set isolation to dirty read」& 「Set isolation to committed read」語法嗎 ??
可以說明一下以上兩個功能主畏在做什麼用的 @@~~飛翔在天際的精靈~~@@
Set isolation to dirty read 為將整個DB設成即使TABLE LOCK 住,依然可以SELECT Set isolation to committed read 為上述之還原
Mickey
版主


發表:77
回覆:1882
積分:1390
註冊:2002-12-11

發送簡訊給我
#4 引用回覆 回覆 發表時間:2002-12-31 15:27:19 IP:61.219.xxx.xxx 未訂閱
引言: 請問在oracle 上有類似informix 中的 「Set isolation to dirty read」& 「Set isolation to committed read」語法嗎 ??
不知是不是你想要的. ALTER SESSION SET ISOLATION_LEVEL = { SERIALIZABLE | READ COMMITTED } specifies how transactions containing database modifications are handled. ISOLATION_ LEVEL is a session parameter only, not an initialization parameter. SERIALIZABLE indicates that transactions in the session use the serializable transaction isolation mode as specified in SQL92. That is, if a serializable transaction attempts to execute a DML statement that updates rows currently being updated by another uncommitted transaction at the start of the serializable transaction, then the DML statement fails. A serializable transaction can see its own updates. READ COMMITTED indicates that transactions in the session will use the default Oracle transaction behavior. Thus, if the transaction contains DML that requires row locks held by another transaction, then the DML statement will wait until the row locks are released. /* 使用中文很辛苦,中華男兒當自強 */
hazard
一般會員


發表:30
回覆:24
積分:10
註冊:2006-10-28

發送簡訊給我
#5 引用回覆 回覆 發表時間:2002-12-31 18:59:15 IP:61.221.xxx.xxx 未訂閱
感謝 
系統時間:2024-06-24 20:41:04
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!