Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Why this update is not working , can't I use nvl function in
--0__=85256984006BEAF88f9e8a93df938690918c85256984006BEAF8
Content-type: text/plain; charset=us-ascii
Try this way,
set max_capacity = (select nvl(max (col1),0.0) from <table2>
hope this helps.
best regards,
prasad
"Koivu, Lisa" <lkoivu_at_qode.com> on 10/26/2000 03:10:54 PM
Please respond to ORACLE-L_at_fatcity.com
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc: (bcc: Prasada R Gunda/HLIFE) Subject: RE: Why this update is not working , can't I use nvl function in
Veera, I don't believe you can't have a select statement in an NVL. As
long
as you are in a procedure and aren't stuck to straight SQL, execute your
select into a variable and NVL that variable.
sorry.
Lisa Rutland Koivu
Oracle Database Administrator
Qode.com
4850 North State Road 7
Suite G104
Fort Lauderdale, FL 33319
V: 954.484.3191, x174 F: 954.484.2933 C: 954.658.5849
"The information contained herein does not express the opinion or position of Qode.com and cannot be attributed to or made binding upon Qode.com."
-----Original Message-----
Sent: Thursday, October 26, 2000 2:53 PM
To: Multiple recipients of list ORACLE-L
update st
Hi Guys,
Can anybody tell me why this update is failing , can't I use nvl
function in update while
loop thru?, please also see the errors at the end.
DECLARE
v_min_unique_num int; v_max_unique_num int; v_increment int;
v_increment := 10000;
v_min_unique_num = 1;
v_max_unique_num = 100;
while (v_min_unique_num <= v_max_unique_num) loop
update <table1>
set max_capacity = nvl( (select max (col1) from <table2>
where <table2>.col1 = <table1.col1 and
<table1.col1 in (select col1 from <table3>
where col2 = 33)), 0.0)
where <table1>.col1 between v_min_unique_num and (v_min_unique_num +
v_increment);
v_min_unique_num := v_min_unique_num + v_increment + 1;
end loop;
end;
/
PLS-00103: Encountered the symbol "SELECT" when expecting one of the
following:
( - + mod not null others <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current exists max min prior sql stddev sum variance
execute forall time timestamp interval date
<a string literal with character set specification>
<a number> <a single-quoted SQL string>
ORA-06550: line 78, column 31: PLS-00103: Encountered the symbol "," when expecting one of the following:
Veera
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Veera Prasad
INET: vprasad_at_olf.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: 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).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
--0__=85256984006BEAF88f9e8a93df938690918c85256984006BEAF8
Content-type: text/html;
name="att1.htm"
Content-Disposition: attachment; filename="att1.htm" Content-transfer-encoding: base64 Content-Description: Internet HTML
PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDMuMi8vRU4iPg0KPEhUTUw+ DQo8SEVBRD4NCjxNRVRBIEhUVFAtRVFVSVY9IkNvbnRlbnQtVHlwZSIgQ09OVEVOVD0idGV4dC9o dG1sOyBjaGFyc2V0PWlzby04ODU5LTEiPg0KPE1FVEEgTkFNRT0iR2VuZXJhdG9yIiBDT05URU5U PSJNUyBFeGNoYW5nZSBTZXJ2ZXIgdmVyc2lvbiA1LjUuMjY1MC4xMiI+DQo8VElUTEU+UkU6IFdo eSB0aGlzIHVwZGF0ZSBpcyBub3Qgd29ya2luZyAsIGNhbid0IEkgdXNlIG52bCBmdW5jdGlvbiBp biB1cGRhdGUgc3QgPC9USVRMRT4NCjwvSEVBRD4NCjxCT0RZPg0KDQo8UD48Rk9OVCBTSVpFPTI+ VmVlcmEsIEkgZG9uJ3QgYmVsaWV2ZSB5b3UgY2FuJ3QgaGF2ZSBhIHNlbGVjdCBzdGF0ZW1lbnQg aW4gYW4gTlZMLiZuYnNwOyBBcyBsb25nIGFzIHlvdSBhcmUgaW4gYSBwcm9jZWR1cmUgYW5kIGFy ZW4ndCBzdHVjayB0byBzdHJhaW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IGNvbW1hbmQgZm9yIG90aGVyIGluZm9ybWF0aW9uIChsaWtl IHN1YnNjcmliaW5nKS48L0ZPTlQ+DQo8L1A+DQoNCjwvQk9EWT4NCjwvSFRNTD4=
--0__=85256984006BEAF88f9e8a93df938690918c85256984006BEAF8--
From: "Gabriel Galanternik" <ggalanterni_at_tesis-oys.com.ar>
Date: Thu, 26 Oct 2000 16:37:30 -0300
Subject: RE: Upgrade 8.0.4 to 8.1.x
The MUST part means:
Designer 2.1.2 AND Designer 6.0/6.i when generates web modules, generates
packages which exceeds
maximum package lenght, so I get "program too large" error...
nice thing, ouch!
And Support won't fix this thing neither previous nor next versions of
designer, so, I must upgrade db
Thanks a lot
Gabriel
Gabriel Galanternik Tesis OyS
Well must is a strong word. You never really have to upgrade Oracle unless you find a bug that Oracle does not already have a fix for. I still have one database here running 7.3.3 and just got rid of a 7.3.4 one.
I do believe though that to use Des2k 6i you need Oracle 8i. But you could just install another version of Oracle for that.
However, just last night I did the upgrade to 8.0.4 to 8.1.6 along with an major OS upgrade. No problems. It's not to complicated when its a supported upgrade which this is.
-----Original Message-----
Sent: Thursday, October 26, 2000 7:47 AM
To: Multiple recipients of list ORACLE-L
Just two questions:
- I've been doing almost everything but never a DBA. Now Oracle Support
tells me I MUST upgrade my 8.0.4 database to a 8.1.x
It's over NT. Is as easy as it sounds? what should I care?
The database is not running any application. No users executing
anything, just some developers, some Oracle Education Trainers'
doing the labs, etc.
In the box I have the database and some tools, I mean,
Dev2k 1.3, 2.1.2, 6.0; Des2k 1.3, 2.1.2, 6.0; an Owas 3.0; a WEBDB;
and some setups uses in curses of Oracle Education.
I can have the db down for a while but I can't lose it...
Any suggestion? besides "Perform a voodoo dance" as Dr. Nikolay
Kumanov recomended recently?
- As you could see I'd like to join a list more developers oriented
Anyone heard about one?
From: "Michael Ray" <Michael.Ray_at_trw.com>
Date: Thu, 26 Oct 2000 12:44:33 -0700
Subject: Re: listener wont connect any more sessions and wontstop/start
Received on Thu Oct 26 2000 - 14:39:25 CDT