Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Please Help on Decode statement
>Hi Mujahid,
>
>using decode with the dual table will do what you want:
>select decode(v_name,'one'1,'two,2) from dual
>
>HTH,
>Peter
>
>
Yes sure, but now you are making a totally unnecessary trip to the database.
What's wrong with using IF anyway?
It's part of what a prcedural language is all about
John
FOR UTILITY PARTNERS EMPLOYMENT
OPPORTUNITIES VISIT www.utilpart.com
e-mail: jomarlen_at_aol.com
Web Site: http://members.aol.com/jomarlen/
The views expressed in this message
are those of the author and not
necessarily those of U.P. Inc.
and/or its employees.
![]() |
![]() |