![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I would like to execute a SELECT * from table1 order by<XYZ and get the results into IN OUT cursor. I want to pass XYZ as input parameter to stored procedure. It is treating it as string. For example: if XYZ value is field1, it is executing the SQL statement as SELECT * from table1 order by 'field1' instead of SELECT * from table1 order by field1 Please help. |
#3
| |||
| |||
|
|
Hi, I would like to execute a SELECT * from table1 order by <XYZ and get the results into IN OUT cursor. I want to pass XYZ as input parameter to stored procedure. It is treating it as string. For example: if XYZ value is field1, it is executing the SQL statement as SELECT * from table1 order by 'field1' instead of SELECT * from table1 order by field1 Please help. |
#4
| |||
| |||
|
|
Amritha wrote: Hi, I would like to execute a SELECT * from table1 order by<XYZ and get the results into IN OUT cursor. I want to pass XYZ as input parameter to stored procedure. It is treating it as string. For example: if XYZ value is field1, it is executing the SQL statement as SELECT * from table1 order by 'field1' instead of SELECT * from table1 order by field1 Please help. I suppose you could use a ref_cursor, but what kind of design requires such construction?- Hide quoted text - - Show quoted text - |
![]() |
| Thread Tools | |
| Display Modes | |
| |