Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Ang: RE: Pl/sql question - if statement

Re: Ang: RE: Pl/sql question - if statement

From: <DBarbour_at_austin.isd.tenet.edu>
Date: Tue, 09 Apr 2002 20:03:28 -0800
Message-ID: <F001.0044039A.20020409200328@fatcity.com>

Roland,

What ever happened to the Access list you were trying to find?

David A. Barbour
Oracle DBA, OCP
AISD
512-414-1002

                                                                                                                   
                    Roland.Skoldbl                                                                                 
                    om_at_ica.se            To:     Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>       
                    Sent by:             cc:                                                                       
                    root_at_fatcity.c       Subject:     Ang: RE: Pl/sql question - if statement                      
                    om                                                                                             
                                                                                                                   
                                                                                                                   
                    04/09/2002                                                                                     
                    11:48 AM                                                                                       
                    Please respond                                                                                 
                    to ORACLE-L                                                                                    
                                                                                                                   
                                                                                                                   





Yes but then it fails onthe word borttags_flagg, thi serrormessage :

PLS-00103: Encountered the symbol "BORTTAGS_FLAGG" when expecting one of the following:

   . ( * @ % & = - + < / > at in mod not rem then    <an exponent (**)> <> or != or ~= >= <= <> and or like

I reallydont see what the error is:

Roland

"John Hallas" <john.hallas_at_hcresources.co.uk>@fatcity.com den 2002-04-09 07:58 PST Sänd svar till ORACLE-L_at_fatcity.com

Sänt av: root_at_fatcity.com

Till: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> Kopia:

Don't you need to start of with a quote before the first A

If 'A'||AvdNr||'.ICA_ARTIKEL@'||LookUpServerName|| 'BORTTAGS_FLAGG = 0 ''

John

-----Original Message-----

Roland.Skoldblom_at_ica.se
Sent: 09 April 2002 15:43
To: Multiple recipients of list ORACLE-L

anyone whom can tell me why this statement fails in a pl/sqll code:

I get this error message
PLS-00103: Encountered the symbol "||AvdNr||" when expecting one of the following:

   . ( * @ % & = - + < / > at in mod not rem then    <an exponent (**)> <> or != or ~= >= <= <> and or like    betwe

 when i run this statement

If A'||AvdNr||'.ICA_ARTIKEL@'||LookUpServerName|| 'BORTTAGS_FLAGG = 0 ''

                                     then

lvSQL := 'SELECT ICA_ARTIKEL.FSGPRIS,ICA_ARTIKEL.PANTBELOPP ' ||

--PBK.LPKORGEANREL.EANREL,PBK.LPK

ORGEANREL.VARUTYP ' ||

                                         'FROM
A'||AvdNr||'.ICA_ARTIKEL@'||LookUpServerName|| ' ' ||
                                               --PBK.LPKORGEANREL ' ||
                                         'WHERE ICA_ARTIKEL.EAN=' ||
EanLPVara || ' ' ||
                                     'AND
ICA_ARTIKEL.DATUM<TO_DATE('''||inDatum||''',''YYYY-MM-DD'') ' ||
                                              -- 'AND
ICA_ARTIKEL.BORTTAGS_FLAGG = 0 ' ||
                                          'ORDER BY DATUM DESC';

                                              --
DBMS_OUTPUT.PUT_LINE(lvSQL);

DBMS_OUTPUT.PUT_LINE(SUBSTR(lvSQL,1,250));

DBMS_OUTPUT.PUT_LINE(SUBSTR(lvSQL,251,250));

                                              END IF;

Please help me. I must be blind. I have tried to look at the first code line..
Would appreciate help very much.

Thanks in advance.

Roland

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author:
  INET: Roland.Skoldblom_at_ica.se

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: John Hallas
  INET: john.hallas_at_hcresources.co.uk

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author:
  INET: Roland.Skoldblom_at_ica.se

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author:
  INET: DBarbour_at_austin.isd.tenet.edu

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Tue Apr 09 2002 - 23:03:28 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US