begin
if :as_part_order.eb_qty > '0' then
EB_SAVE;
end if;
if
:as_part_order.ed_qty > '0' then
ED_SAVE;
end if;
if
:as_part_order.ee_qty > '0' then
EE_SAVE;
end if;
if
:as_part_order.ef_qty > '0' then
EF_SAVE;
end if;
if
:as_part_order.eg_qty > '0' then
EG_SAVE;
end if;
if
:as_part_order.eh_qty > '0' then
EH_SAVE;
end if;
if
:as_part_order.ej_qty > '0' then
EJ_SAVE;
end if;
exception when others then
lm_show_alert1('note','오류1',sqlerrm);
return;
end;
위에 소스는 if문마다 그값이 0보다 크면 각각 그것을 저장하는 문 이어욧~
각 값마다 0보다 큰숫자가 입력만 되면
테이블에 중복으로 저장 하도록 되었는데
프로그램 개발중인데 테스트 해보면 0보다 큰것이 2개 이상되면 저장되는것은
둘중 앞쪽에 있는 것만 저장이 되어요~
혹시 loop문으로 돌려야 되는것인지..
잘 모르겠어요~
loop문이라면 어떻게 해야 하는지 예시좀 보여주셨으면 ㅜㅜ감사합니다.