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
66 Views Asked by Abhishek Kumar At
1
There are 1 best solutions below
Related Questions in PLSQL
- How to send message to syslog agent in plsql
- In PLSQL, How to fetch "User Tables" but not limited to Owner wise only, that have been created under different Schemas of different Users
- How to add the decimal point based on the condition in oracle?
- I am writing the sql query to get the latest supervisor and their job
- How to pass a array object to an oracle stored procedure?
- Difference between an "IS" or "AS" function/procedure declaration PL/SQL
- Best way to create a conditional SQL query? CASE, DECODE, or IF/THEN?
- Can anyone please post working code to send email using sendgrid on Azure databse using PLSQL procedure
- Retrieve record specific date and time in Oracle SQL
- Need to use join result into second cursor in PL/SQL
- ORACLE: Build 'INSERT INTO' statements from 'SELECT *' results
- ORACLE: Build 'INSERT INTO' statements from SELECT * results
- Error in Syntax - Oracle APEX - apex_authorization.is_authorized function
- How to convert CLOB to varchar , and separate them by comma
- Please, my Oracle EBS query when creating a custom report still contains duplicate data,
Related Questions in PLSQLDEVELOPER
- linux command for invalid month format replace
- Please, my Oracle EBS query when creating a custom report still contains duplicate data,
- KUP-04026: field too long or datatype error
- Stored procedure - PostgreSQL Query
- Migrating data from source data into new relation?
- Can't create any function in Oracle SQL Developer
- PL/SQL script to search for a particular string in data from the entire database
- FIndout the column name and the column value who is having different value
- Updating a table which stores queries which requires user inputs
- How to write a function which returns associative array and call the function in Oracle PLSQL?
- Generating an alphabetic sequence with number in oracle
- error "\" in tabular model/Analysis service
- fire a trigger when on of my table column change
- Script PLSQL developer run in python jupyter notebook
- How to code for getting user input in PLSQL?
Related Questions in PLSQL-PACKAGE
- Show CLOB data in IFS
- KUP-04026: field too long or datatype error
- How to read a data from word document through Oracle Directory and split the document content , insert into a table
- Using SYS_REFCURSOR values in stored procedures in Oracle Database 19c
- Why can't I modify the value in this PL/SQL code?
- Sql Command not properly ended//
- PL/SQL ORA-00932: inconsistent datatypes: expected - got -
- ora-00060: deadlock detected while waiting for resource - PL/SQL
- SQL developer popup JPDA - how to turn off?
- Add dynamic Numbers to the strings in sql
- Import multiple data dump file using oracle API
- How to pass json string with multiple record (Array) as an input parameter to pl/sql stored procedure
- how to export images into xlsx file from oracle database
- How to handle parallel execution related issue in plsql procedure
- How do I create a package that contains a stored procedure with 2 parameters and selects data from a table?
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 # Hahtags
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