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

Home -> Community -> Usenet -> c.d.o.misc -> Re: MAX NUMBER

Re: MAX NUMBER

From: Brian Peasland <dba_at_nospam.peasland.net>
Date: Wed, 23 Aug 2006 14:37:10 GMT
Message-ID: <J4GGLz.JK9@igsrsparc2.er.usgs.gov>


Reiro wrote:
> im using oracle 9i and my query for increase the id is
> nz(max(asset_id),0) + 1 its incorpated into my insert statement.
>

What is the NZ function? Any reason why you can't code a trigger to do this for you on INSERT? Any reason why you can't use a sequence to determine the number?

Cheers,
Brian

-- 
===================================================================

Brian Peasland
dba_at_nospam.peasland.net
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown
Received on Wed Aug 23 2006 - 09:37:10 CDT

Original text of this message

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