Using Parameters in Order By Clause in PL - SQL
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Detail
Using Parameters in Order By Clause in PL - SQL
Today I was working on a data table, output in HTML generated by PL/SQLhttp://joelennon.com/?q=node/583
Total Hits: 5180
Total Votes: 36 votes
Category: Oracle/Oracle Misc
Submitted on: 2008-04-15 01:56:23
Submitted By: Shekhar
Description:
Basically I have a procedure which takes a parameter (p_sort_by) and establishes which column to sort by based on this parameter. It does this using the DECODE function, which has similar functionality to IF-THEN-ELSE statements. I could have alternatively used CASE statements here, which are easier to understand, but they are not supported in older versions of Oracle. More detail...Rating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 16.67% |
6 |
![]() ![]() |
![]() ![]() 16.67% |
6 |
![]() ![]() ![]() |
![]() ![]() 16.67% |
6 |
![]() ![]() ![]() ![]() |
![]() ![]() 16.67% |
6 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 16.67% |
6 |





16.67%

16.67%

16.67%

16.67%

16.67%