But when I have fixed that error and then have the
then statement
put before the lvsql statement
I get this errormessage:
What does that mean? How to fix it?
PLS-00103: Encountered the symbol "THEN" when expecting one of the following:
( - + mod null
avg
count current max mi
Thanks in advance
Roland
"Thomas, John" <[EMAIL PROTECTED]>@fatcity.com den 2002-04-08 07:24 PST
Sänd svar till [EMAIL PROTECTED]
Sänt av: [EMAIL PROTECTED]
Till: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
Kopia:
Roland,
I think you have a quote in the wrong place:
If A'||AvdNr||'.ICA_ARTIKEL@'||LookUpServerName|| 'BORTTAGS_FLAGG = 0 '' ||
Should probably read:
If 'A'||AvdNr||'.ICA_ARTIKEL@'||LookUpServerName|| 'BORTTAGS_FLAGG = 0 ' ||
> Cheers,
>
> John Thomas
-Original Message-
Sent: 08 April 2002 13:43
To: Multiple recipients of list ORACLE-L
Hallo,
I have some trouble with this pl/sql procedure. I would like
that this lvsql to be run only if the field Borttags_flagg = 0 but i get an
error in the if statement, whatis wrong with this? It get the erromressage:
LS-00103: Encountered the symbol "||AvdNr||" when expecting one of the
following:
. ( * @ % & = - + < / > at in mod not rem then
<> or != or ~= >= <= <> and or like
betwe..
when I compile the whole procedure. Please help me with this.
(If the borttags_flagg = 1 then it will continue the loop and check for
next one. etc...
If A'||AvdNr||'.ICA_ARTIKEL@'||LookUpServerName|| 'BORTTAGS_FLAGG =
0 '' ||
then
(this lvsql is to be run only if field borttags_flagg = 0)
lvSQL := 'SELECT
ICA_ARTIKEL.FSGPRIS,ICA_ARTIKEL.BORTTAGS_FLAGG,ICA_ARTIKEL.PANTBELOPP ' ||
--PBK.LPKORGEANREL.EANREL,PBK.LPKORGEANREL.VARUTYP ' ||
'FROM
A'||AvdNr||'.ICA_ARTIKEL@'||LookUpServerName|| ' ' ||
--PBK.LPKORGEANREL ' ||
'WHERE ICA_ARTIKEL.EAN=' ||
EanLPVara || ' ' ||
'AND
ICA_ARTIKEL.DATUMhttp://www.orafaq.com
--
Author: Thomas, John
INET: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).