views:

22

answers:

1

I have a stored procedure(SP) where one of it's param passes the operator.
The operator can be: <=, >=, =

How can I use this in the query?

How the operators are passed is not built yet, it can be string represented <= or by using a custom code 1, 2 or 3. What do you think?

A: 

I think you're doing something strange.

However, you can pass the operator as a string, and use it inside your SP to create a prepared statement.

Mchl
I know sounds awkward but I have to stick to this single SP, and modify it to suit the different options. And one of the filters is a value and the operator too is a filter option.
Pentium10