Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Is it possible to pass a parameter to a stored procedure containing a text?

682732Feb 22 2009 — edited Feb 22 2009
Hi,

Is it possible to pass a parameter to a stored procedure containing a text
string that you can use with where clause in the stored procedure (Oracle)?

In my store procedure select statement is look like this:

Select * from t_absence where duration > '20'

How Can i pass ( duration > '20' ) as a parameter or just ( > ) sign in parameter? Can anyone help pls?

In my application there is drop down menu which contains >,>=,<,<= signs and next to that there is text box where user can input values and i want to pass signs (>,>=,<,<=) depends on user selection and text values to store procedure.

I know how to write normal store procedure with parameters but don't know how to write select query inside procedure which can accept values as mentioned above.



Thanks

Edited by: user10878991 on Feb 22, 2009 9:07 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 22 2009
Added on Feb 22 2009
2 comments
917 views