Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PB11 and Oracle 10 storeproc

Status
Not open for further replies.

BBO007

Programmer
Jun 11, 2009
18
GB
Hi all,
I have an issue I would like to share with you.

I would like to have a DW based on a Oracle store procedure.
I would like that the store proc to have a IN parameter of type VARCHAR2. And the contents of this parameter will be a list of string values, like
param1 = ('Val1','Val2','Val3')
The contents of the variable is built in my PB code.

When I am testing the SQL query directly in Oracle, the follow query is not working and I have no result:
SELECT * FROM TABLE_1
WHERE FIELD_1 in :param1 ;

On the other hand, the following query here is working ok:
SELECT * FROM TABLE_1
WHERE FIELD_1 in ('Val1','Val2','Val3') ;

Is this means something to you ?
Do I have to change the contents of the param1 variable ?

I have already done a storeproc with string parameters or dates, but with one one value at a time, and this is ok.
Now, I would like to go further with the parameter.

Thank you in advance for your help.
BBO007
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top