|
Oracle Home |
|
Home > Oracle SQL & PL/SQL > CASE Expression in an Oracle SELECT statement |
|
Oracle SQL & PL/SQL |
|---|
CASE Expression in an Oracle SELECT statement |
|
Note: The article ( named CASE Expression in an Oracle SELECT statement ) was taken from www.in-oracle.com.
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,
Note: The article ( named CASE Expression in an Oracle SELECT statement ) was taken from www.in-oracle.com.
|
|
Home > Oracle SQL & PL/SQL > CASE Expression in an Oracle SELECT statement |
|
Different Romanian Links/ Linkuri romanesti diferite |
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. Copyright (c) 2009-2011 Paul Catalin Tomoiu. All rights reserved.