freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

oracle異常及觸發(fā)器-免費(fèi)閱讀

  

【正文】 – END。 – BEGIN IF INSERTING THEN – statementtype:=39。審計(jì)3 。 – 以上程序運(yùn)行時(shí),當(dāng)沒(méi)有足夠的空間容納新的學(xué)生時(shí),返回 ora20230: can’ t add more students to his 101錯(cuò)誤消息。 11 – – Create or replace procedure register( – p_studentid in %type, – p_department in %type, – p_course in %type) as – v_currentstudents number。 – 注意,這里 1400不能為別的,因?yàn)榘芽罩挡迦氲椒强樟械腻e(cuò)誤號(hào)就是這個(gè)。在異常處理器內(nèi)部, sqlcode和 sqlerrm將返回發(fā)生 oracle錯(cuò)誤的代碼和錯(cuò)誤信息,而不會(huì)返回用戶定義的消息。 通過(guò)exception_init pragma實(shí)現(xiàn)的 。 – when others then – v_errorcode:=sqlcode。 ? Others異常處理器將對(duì)所有語(yǔ)法的異常情態(tài)進(jìn)行處理 , 一般放在異常處理的最后 , 可以保證所有的錯(cuò)誤都被檢測(cè)到 。 4 – if v_currentstudentsv_maxstudents then – raise e_toomanystudents – End if。 – Begin – select id into v_tempvar from students – where last_name=39。 如果在 sql語(yǔ)句中發(fā)生錯(cuò)誤 , 會(huì)引發(fā) invalid_number錯(cuò)誤 。 – Cursor_already_open:試圖打開已經(jīng)打開的游標(biāo) , 會(huì)引發(fā)這個(gè)錯(cuò)誤 。oracle 異常及 觸發(fā)器 0 異常處理 ? 什么是異常情態(tài) – 異常處理處理的是運(yùn)行時(shí)錯(cuò)誤,異常分為預(yù)定義異常和用戶自定義異常。 – No_data_found:當(dāng) select into語(yǔ)句沒(méi)有返回行時(shí) , 和引用沒(méi)有賦值過(guò)的 pl/sql表的元素時(shí)會(huì)引發(fā)這個(gè)錯(cuò)誤 。 這個(gè)錯(cuò)誤可能是一條賦值語(yǔ)句或 select into語(yǔ)句的執(zhí)行結(jié)果 。smith39。 – End。 – Declare – e_toomanystudents exception – v_currentstudents number(3)。 – v_errortext:=substr(sqlerrm,1,200)。 其語(yǔ)法如下: – Pragma exception_init (exception_name,oracle_error_number) – Pragma必須在聲明部分 – 例:下面的例子在運(yùn)行時(shí)刻如遇到 “ ora1400: mandatory not – null column missing or null during insert” 錯(cuò)誤時(shí) , 將引發(fā)e_missingnull異常情態(tài) 。 – 例: – Declare – ex_hfy exception??梢詥为?dú)執(zhí)行 insert語(yǔ)句查看錯(cuò)誤號(hào)。 – v_maxstudents number。 13 觸發(fā)器 ? 綜述 – 觸發(fā)器可以理解為特殊的存儲(chǔ)過(guò)程。一個(gè)表中的觸發(fā)器可以修改另一個(gè)
點(diǎn)擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1