dbTalk Databases Forums  

DECODE and NVL

comp.databases.oracle.server comp.databases.oracle.server


Discuss DECODE and NVL in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
maomao
 
Posts: n/a

Default DECODE and NVL - 05-29-2007 , 02:17 PM






10gR2

I'm kind of self-doubting now, I'd like to run this by you gurus;

I see this in pl/sql : (written by God-knows-who)

DECODE(some-number-column, NULL, 0,some-number-column)

Is this in fact SAME as NVL(some-number-column, 0) ???

thanks




Reply With Quote
  #2  
Old   
Terry Dykstra
 
Posts: n/a

Default Re: DECODE and NVL - 05-29-2007 , 02:27 PM






"maomao" <mm (AT) mailinator (DOT) com> wrote

Quote:
10gR2

I'm kind of self-doubting now, I'd like to run this by you gurus;

I see this in pl/sql : (written by God-knows-who)

DECODE(some-number-column, NULL, 0,some-number-column)

Is this in fact SAME as NVL(some-number-column, 0) ???

thanks



Looks the same to me.
--
Terry Dykstra




Reply With Quote
  #3  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: DECODE and NVL - 05-29-2007 , 02:49 PM



On May 29, 2:27 pm, "Terry Dykstra" <tddyks... (AT) forestoil (DOT) ca> wrote:
Quote:
"maomao" <m... (AT) mailinator (DOT) com> wrote in message

news:135ov26mb4pav8f (AT) corp (DOT) supernews.com...

10gR2

I'm kind of self-doubting now, I'd like to run this by you gurus;

I see this in pl/sql : (written by God-knows-who)

DECODE(some-number-column, NULL, 0,some-number-column)

Is this in fact SAME as NVL(some-number-column, 0) ???

thanks

Looks the same to me.
--
Terry Dykstra
Only spelled differently.


David Fitzjarrell



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.