Procedure message_record Replace or Create (in p_type VARCHAR2) AS
/ *
Function: generating outgoing SMS message record
* /
l_msg_exist_count VARCHAR2 (500);
l_msg VARCHAR2 (500);
L_COUNT INTEGER: = 0;
l_notice_type VARCHAR2 (50);
the Begin
l_notice_type: notice_type =;
the FOR idx2 the IN (SELECT * wHERE t.type from t_config_demo T = p_type) Loop - here does not support dynamic parameter passing modified constant (FOR idx2 IN (select * from t_config_demo t where t.type = '1' ) Loop): the FOR idx3 does the IN (SELECT * WHERE t2.user_id from t_emplayee_demo T2 = t.user_id) Loop - service processing the END the IF; the END Loop; the END Loop; - log the commit; the EXCEPTION the WHEN the OTHERS THEN
l_msg: = SQLERRM;
ROLLBACK;
- log errors
the commit;
End message_record;
oracle stored procedure for in loop outer layer does not support dynamic mass participation
Guess you like
Origin www.cnblogs.com/shanyingyuyan/p/11349950.html
Recommended
Ranking