Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> newbie 2Ques- SQL procedure calling another proc and Select statement
Ques.(1) How do I create a Select statement based on the input
parameter?
Example
Create procedure myTest(myValue IN Number)
...
Begin
Select myFields From myTable IF myValue =1 Then WHERE somecondition ELSE WHERE another condition
TIA.
Steve
Received on Sun Oct 15 2006 - 08:20:25 CDT
![]() |
![]() |