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
64 Views Asked by Abhishek Kumar At
1
There are 1 best solutions below
Related Questions in PLSQL
- PLSQL Need REFCURSOR DATE + TIME
- PL SQL After Delete Trigger Not Inserting Record
- Oracle stored procedure wrapping compile error with inline comments
- How to compare multiple columns under same row in a table?
- How to find out which procedures and functions are using a table?
- How to display image in oracle form
- Oracle 11g : staging table
- 04098. "trigger '%s.%s' is invalid and failed re-validation"
- PL/SQL Check if SYSDATE is between two DATETIMES "HH24:mi"
- UTL_file: continue reading even if it encounters blank rows
- add time (char(8)) to date column
- if x not in(select y from table) in oracle
- Generate random ROWID
- Get same day of the same week last year
- Call procedure using anonymous block in pl/sql?
Related Questions in PLSQLDEVELOPER
- UTL_file: continue reading even if it encounters blank rows
- Oracle: Optimize large input regex_substr parsing to use POSITION parameter instead of OCCURRENCE parameter
- ORA-00933: SQL command not properly ended : When I try to execute INSERT
- Can Oracle PL/SQL CASE statement include a SELECT query?
- Using SUBSTR() AND INSTR() find end of string
- How to use INSTR() and SUBSTR()
- PLS-00103: Encountered the symbol “;” when expecting one of the following:
- Inserting French character into Oracle gets converted into some junk characters
- not data found exception in insert statement
- Generate a .log file plsql / oracle
- Decode values of a column in plsql
- Update and insert in oracle PL/SQL along with if else condition
- Oracle Regexp_replace to add double quotes or remove all attributes per element
- How to sort varchar values in oracle
- PL/SQL wrong number or types of arguments in call to 'P'
Related Questions in PLSQL-PACKAGE
- Calling or using oracle array package in oracle apex
- How to debug package body and triggers in Oracle using toad or some other editor
- ORA-01722 invalid number despite not casting anything to number
- Encountered the symbol "EXCEPTION" when expecting one of the following: ,
- ora-00060: deadlock detected while waiting for resource - PL/SQL
- PL/SQL ORA-00932: inconsistent datatypes: expected - got -
- Sql Command not properly ended//
- Why can't I modify the value in this PL/SQL code?
- Reg: procedure is giving erro
- PL/SQL UTL_FILE: How the loop automatically returns the next line?
- 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
- Granting execute privileges on a procedure, but only inside a trigger
- Get values from XML using SQL
- PLS-00215: String length constraints must be in range (1 .. 32767)
- Error PLS-00306: wrong number or types of arguments in call to 'P_CHECKAVGRATE' PL/SQL: Statement ignored
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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