| In Oracle : Oracle SQL Case | |||
|
|
|||
| |||
|
|
|||
|
In-Oracle.com -> Oracle SQL & PLSQL -> Oracle SQL Case
Oracle SQL Case
CASE Expression in an Oracle SELECT statement
The CASE expression is a more complex version of the DECODE function.
This case of CASE use is another way to "rewrite" a DECODE function:
SELECT ename, empno,
is another way of writing:
SELECT ename, empno,
Note: In this case the execution plan doesn't change.
Using the CASE function, multiple conditions can be combined into one:
SELECT ename, empno,
In-Oracle.com -> Oracle SQL & PLSQL -> Oracle SQL Case |
||
|
|||
|
|
Find related information on Google:
Custom Search
|
Copyright (c) 2011-2012 www.in-oracle.com | Disclaimer: The views expressed on this web site are my own and do not reflect the views of Oracle Corporation. You may use the information from this site only at your risk.