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

正文內(nèi)容

oracle異常及觸發(fā)器-文庫吧資料

2025-02-09 07:38本頁面
  

【正文】 tion_error(error_number,error_message,[keeperrors])??梢詥为殘?zhí)行 insert語句查看錯誤號。 – End。不能把空值插入到非空列 39。 – Begin – insert into students values(null)。 – 例: – Declare – ex_hfy exception。 9 – 每次發(fā)生 pragma exception_init時,一個 oracle錯誤只能和一個用戶定義的異常情態(tài)相關(guān)聯(lián)。 – Exception – when e_missingnull then – insert into log_table(info) values(‘ ora1400 occurred’ )。 – pragma exception_init (e_missingnull,1400)。 其語法如下: – Pragma exception_init (exception_name,oracle_error_number) – Pragma必須在聲明部分 – 例:下面的例子在運行時刻如遇到 “ ora1400: mandatory not – null column missing or null during insert” 錯誤時 , 將引發(fā)e_missingnull異常情態(tài) 。這樣可以用 w h e n 撲獲此錯誤 , 不用 o t h e r s 撲獲 。 sqlcode返回當(dāng)前的錯誤號 , sqlerrm返回當(dāng)前的錯誤信息正文 。 – end。 – v_errortext:=substr(sqlerrm,1,200)。 – Exception – when e_toomanystudents then – insert into log_table(info) – values (‘ history 101 has’ || v_currentstudents || – ‘ students: max allowed is ‘ || v_maxstudents)。 – Begin – select current_students,max_students – into v_currentstudents,v_maxstudents – from classes – where department=‘ HIS’ and course=‘ 101’ 。 – v_errorcode number。 – Declare – e_toomanystudents exception – v_currentstudents number(3)。 – End。 – 處理異常情態(tài) ? 異常部分的語法如下: – Exception – when exception_name then – 處理錯誤語句序列 – when exception_name then – 處理錯誤語句序列 – when others then – 處理錯誤語句序列 – end。 如果沒有異常處理部分 , 該異常處理部分將傳給包含該塊的塊 。 – End。 – Begin – select current_students,max_
點擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1