any one have any idea about how we can use DSQL in stored procedure.
Explanation:
I mean in front end if user select something from combnos or text field then accoerding to that we built a where clause of query i.e. the number of fields varies in where clause and we built a string and then use that string in catenation with our query.
My question is how we can dynamicly create different numbers of field for where clause in stored procedure.(note: we can send argument values but not strquery or strwhere as a string to sp)
I want to use where clause in sp. but when i create a where clause in sp or pass it to sp from front end, then the where clause will be of the type varchar(..)
and how we can use it.
e.g. select * from client where strwher will give error
or in cursor
For strquery into :client_id,:client_nm...... is also error
Explanation:
I mean in front end if user select something from combnos or text field then accoerding to that we built a where clause of query i.e. the number of fields varies in where clause and we built a string and then use that string in catenation with our query.
My question is how we can dynamicly create different numbers of field for where clause in stored procedure.(note: we can send argument values but not strquery or strwhere as a string to sp)
I want to use where clause in sp. but when i create a where clause in sp or pass it to sp from front end, then the where clause will be of the type varchar(..)
and how we can use it.
e.g. select * from client where strwher will give error
or in cursor
For strquery into :client_id,:client_nm...... is also error