Advertisement

07.18.2008 at 08:27AM PDT, ID: 23577155
[x]
Attachment Details

Inline queries in oealce 8i

Asked by vishali_vishu in Oracle 8.x

Tags: pl/sql

Hi,

I have cursor with a complex inline query, used inside the procedure. when the complile and excute the procedure its working fine in oracle 9i Database.

When i try to run this in the oracle 8i databse, i am getting an error code as pls:00103 where ever i use the inline query.
I would like to know how do we use the inline query in the oracle 8i databse.
here is my query :


CURSOR cur_prod_detail (owne VARCHAR2, prod VARCHAR2, iss VARCHAR2) IS
            SELECT  OWNER_ID,
                    PRODUCT_ID,
                    ISSUE,
                    '*' E_STATUS,
                    TAG_ALONG_ID_1,  
                    TAG_ALONG_DATA_1,
                    TAG_ALONG_ID_2,
                    TAG_ALONG_DATA_2,
                    TAG_ALONG_ID_3,
                    TAG_ALONG_DATA_3,        
                    SET_FLAG,
                    SET_PRICE_FLAG,
                    NVL((SELECT DISTINCT 'Y'
                         FROM PRODUCT_SET PS
                         WHERE PS.COMPONENT_OWNER_ID LIKE OWNER_ID
                         AND PS.COMPONENT_PRODUCT_ID LIKE PRODUCT_ID
                         AND PS.COMPONENT_MEDIA_TYPE LIKE line_media),'N') AS COMPONENT_FLAG
            FROM PRODUCT
            WHERE OWNER_ID LIKE  owne
            AND PRODUCT_ID LIKE prod
            AND ISSUE LIKE iss
            AND PRODUCT_STATUS IN ('A','P') ;
When i run just the query its giving an error as ORA-00936: missing expression
Start Free Trial
 
Loading Advertisement...
 
[+][-]07.20.2008 at 09:31PM PDT, ID: 22048042

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 12:39PM PDT, ID: 22073023

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 12:52PM PDT, ID: 22073134

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Oracle 8.x
Tags: pl/sql
Sign Up Now!
Solution Provided By: sdstuber
Participating Experts: 1
Solution Grade: B
 
 
[+][-]07.24.2008 at 05:18AM PDT, ID: 22078221

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 08:03AM PDT, ID: 22079945

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.26.2008 at 04:52AM PDT, ID: 22094687

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628