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

正文內容

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

2025-01-26 07:38 本頁面


【正文】 department=‘ HIS’ and course=‘ 101’ 。 4 – if v_currentstudentsv_maxstudents then – raise e_toomanystudents – End if。 – End。 – 當引發(fā)異常情態(tài)時 , 控制轉給該塊的異常處理部分 。 如果沒有異常處理部分 , 該異常處理部分將傳給包含該塊的塊 。 一旦將控制轉給異常處理部分 , 沒有辦法再將控制返回給該塊的執(zhí)行部分 。 – 處理異常情態(tài) ? 異常部分的語法如下: – Exception – when exception_name then – 處理錯誤語句序列 – when exception_name then – 處理錯誤語句序列 – when others then – 處理錯誤語句序列 – end。 5 – 一個處理器可以對多個異常情態(tài)進行處理 , 用 or連接 – 例: – Exception when no_data_found or too_many_rows then – insert into log_table(info) values (‘ a select error occurred’ )。 – End。 ? Others異常處理器將對所有語法的異常情態(tài)進行處理 , 一般放在異常處理的最后 , 可以保證所有的錯誤都被檢測到 。 – Declare – e_toomanystudents exception – v_currentstudents number(3)。 – v_maxstudents number(3)。 – v_errorcode number。 – v_errortext varchar2(200)。 – Begin – select current_students,max_students – into v_currentstudents,v_maxstudents – from classes – where department=‘ HIS’ and course=‘ 101’ 。 6 – if v_currentstudentsv_maxstudents then – raise e_toomanystudents – End if。 – Exception – when e_toomanystudents then – insert into log_table(info) – values (‘ history 101 has’ || v_currentstudents || – ‘ students: max allowed is ‘ || v_maxstudents)。 – when others then – v_errorcode:=sqlcode。 – v_errortext:=substr(sqlerrm,1,200)。 – insert into log_table(info) – values (‘ another error occurred’ )。 – end。 – *sqlc
點擊復制文檔內容
試題試卷相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1