Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> "ORDER BY" problem
In a query inside the Reports, I want to be able to do "ORDER BY" in
accordance with input parameters. Say, I have a table A with columns named
'columnA' and 'columnB'. I also have user parameters named 'param1' and
'param2'. I would like to do the following:
select columnA, columnB
from A
order by :param1, :param2;
This presumes of course that the content of each user parameter would be
'A.columnA' or 'A.columnB'.
What is a correct way to do this?
Thanks
ZAch Agatstein Received on Wed Nov 04 1998 - 14:25:21 CST
![]() |
![]() |