Mulitple values in a Parameter List

In comparison to the SQL statement :: IN (nn, nn, nn)
I need to do the same thing with a $P{nn, nn, nn)

how do I accomplish this in IReports when I'm propted for a input.
rachele51's picture
Joined: Aug 14 2006 - 11:58pm
Last seen: 16 years 10 months ago

3 Answers:

Hi,

I have the same problem.

I tried many ways to do this with no success.

Ronald.
ripolking's picture
Joined: Jul 21 2006 - 4:55am
Last seen: 16 years 10 months ago
Hi,

I have the same problem - have either of you found a solution yet?

Thanks
maili's picture
17
Joined: Aug 9 2006 - 7:28pm
Last seen: 16 years 10 months ago
Hi,

You would have to use the $P!{paramName} syntax, because in this case you are actually modifying the query and those are not normal PreparedStatement parameter place-holders.

SELECT * FROM table WHERE column IN {nn, nn, nn}

would become

SELECT * FROM table WHERE column IN {$P!{paramName}}

where

paramName=nn, nn, nn


I hope this helps.
Teodor
teodord's picture
47378
Joined: Jun 30 2006 - 9:00am
Last seen: 1 day 12 hours ago
Feedback
randomness