BEGIN
--{
SELECT CONCAT(CONCAT('''',REPLACE(VALUE_1, ',', ''',''')),'''') into glv_v_PROC_FEE
FROM TABLE_A ;
EXCEPTION WHEN NO_DATA_FOUND THEN
glv_v_PROC_FEE := ' ';
--}
END;
dbms_output.put_line('glv_v_PROC_FEE: '||glv_v_PROC_FEE);
BEGIN
--{
SELECT sum(ORDER) INTO glv_v_PROCESSING_FEE_WITH_VAT
FROM TABLE_B WHERE COL1 in (glv_v_PROC_FEE);
EXCEPTION WHEN NO_DATA_FOUND THEN
glv_v_PROCESSING_FEE_WITH_VAT := ' ';
--}
END;
dbms_output.put_line('glv_v_PROCESSING_FEE_WITH_VAT: '||glv_v_PROCESSING_FEE_WITH_VAT);
I'm trying to use a local variable's value in another query in PLSQL package but every time the 2nd query is returning null value
37 Views Asked by Abhishek Kumar At
1
You can't use such a value in
IN
; you'll have to split it to rows, such asOn the other hand, why wouldn't you skip two queries and use just