过程里直接根据10个表更新workflow_currentoperator ,如下:
update workflow_currentoperator t set t.userid=(select user_id from formtable_main_206 a
where a.requestid=t.requestid and a.clientno=client_no)
where t.isremark=0
......
beginselect count(*) into v_count from bpa_df_role where drename=record_drename and ddnid=ddnid_new
if v_count=0
then
select dreid into dreid_new from bpa_df_role where drename=record_drename and ddnid=ddnid_new
update....
else
update...
end if
end
类似这样处理吧,得前边定义一个v_count的变量,百度这个换行换的真难看,能看懂吧?
不过update后必须要提交,要不重新进来,还是未更改状态
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)