명확하게 쓴 전신의 초기화 데이터의 저장 과정
4934 단어 저장 프로세스
declare
cursor c_order_id is select a.row_id from te_cust_order_list a where nvl(a.del_flag,'0')='0' and nvl(a.arc_flag,'0')='0'
and f_o_get_customer_info(a.cust_id,'5') in (' ',' ',' ')
and not exists (select 1 from te_order_query q where q.order_id=a.row_id
and q.access_type ='1' and q.access_obj_type='1' and q.access_obj_id in
(select u.user_id from th_user_pos_rel u where u.pos_id=(select row_id from th_position pos where pos.pos_code='HKXSZL')))
;
v_order_id varchar2(100);
begin
open c_order_id;
loop
fetch c_order_id into v_order_id;
exit when c_order_id%notfound;
chushihua(v_order_id);
end loop;
close c_order_id;
end;
CREATE OR REPLACE PROCEDURE chushihua(
v_order_id in varchar2) AS
v_cust_id varchar2(40);
v_cust_attr varchar2(40);
v_order_line_id varchar2(200);
cursor c_order_line_ids is select line.row_id from te_cust_order_line line where line.order_id=v_order_id;
BEGIN
select cust_id into v_cust_id from te_cust_order_list t where row_id = v_order_id;
select f_o_get_customer_info(v_cust_id,'5') into v_cust_attr from dual;
if v_cust_attr=' ' then
---
open c_order_line_ids;
loop
fetch c_order_line_ids into v_order_line_id;
exit when c_order_line_ids%notfound;
insert into te_order_query (row_id,order_id,order_line_id,access_type,access_obj_type,create_by,access_obj_id)
select f_get_globalid,order_id,order_line_id,access_type,access_obj_type,create_by,access_obj_id
from (
select v_order_id as order_id,v_order_line_id as order_line_id ,'1' as access_type,'1' as access_obj_type ,'chenxm' as create_by,a.row_id as access_obj_id from th_user a,th_user_pos_rel b
where a.row_id=b.user_id and b.pos_id='2011042600631231'
and a.user_dept_id= (select row_id from th_int_dept a where a.dept_code='HKYYGXB'));
end loop;
close c_order_line_ids;
elsif v_cust_attr=' ' then
---
open c_order_line_ids;
loop
fetch c_order_line_ids into v_order_line_id;
exit when c_order_line_ids%notfound;
insert into te_order_query (row_id,order_id,order_line_id,access_type,access_obj_type,create_by,access_obj_id)
select f_get_globalid,order_id,order_line_id,access_type,access_obj_type,create_by,access_obj_id
from (
select v_order_id as order_id,v_order_line_id as order_line_id ,'1' as access_type,'1' as access_obj_type ,'chenxm' as create_by,a.row_id as access_obj_id from th_user a,th_user_pos_rel b
where a.row_id=b.user_id and b.pos_id='2011042600631231'
and a.user_dept_id= (select row_id from th_int_dept a where a.dept_code='HKQYKHB'));
end loop;
close c_order_line_ids;
elsif v_cust_attr=' ' then
---
open c_order_line_ids;
loop
fetch c_order_line_ids into v_order_line_id;
exit when c_order_line_ids%notfound;
insert into te_order_query (row_id,order_id,order_line_id,access_type,access_obj_type,create_by,access_obj_id)
select f_get_globalid,order_id,order_line_id,access_type,access_obj_type,create_by,access_obj_id
from (
select v_order_id as order_id,v_order_line_id as order_line_id ,'1' as access_type,'1' as access_obj_type ,'chenxm' as create_by ,a.row_id as access_obj_id from th_user a,th_user_pos_rel b
where a.row_id=b.user_id and b.pos_id='2011042600631231'
and a.user_dept_id= (select row_id from th_int_dept a where a.dept_code='HKSCB'));
end loop;
close c_order_line_ids;
---
end if;
END chushihua;
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Java 호출 Oracle 스토리지 프로세스 상세 정보Java 호출 Oracle 스토리지 프로세스 상세 정보 단계: 1. Oracle 스토리지 프로세스 작성 2. 데이터베이스 작성 연결 도구 클래스 얻기 3. 간단한 응용 프로그램 호출 저장 프로세스 작성 구현: 1. ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.