은 내가 어떻게 예를 들어 쿼리
를 사용하여 동일한 절차 내에서 프로 시저 매개 변수에 액세스 할 쿼리에서 프로 시저 매개 변수를 사용하는 방법 : 위의 절차에서와 병합 문에이 절차방법
procedure game(left in tab.left%type,right in tab.right%type,...)
is
--some local variables
begin
merge into tgt_table
using subquery --(here is what i need to use the parameters)
on some condition
when matched then
update the tgt table
when not matched then
insert the table;
end game;
를 참조, 난 매개 변수 값을 테이블 참조로 사용하고 주어진 조건에 따라 테이블에 업데이트하거나 삽입하는 값을 사용하는 쿼리가 필요합니다.
도와주세요.