0 votes
1 view
Hello,

we are trying to use a parameter in dataset with reserved word LIKE and we don't find the solution. The WHERE clause is:

WHERE clinica LIKE '%P{clinicaname}%'

Thank and regards
Environment 7.1.5 - Debian 9
asked Mar 29, 2021 in Data Set by jrserrano (120 points) | 1 view

1 Answer

0 votes

Dear jrserrano,

I think it is correct what your are trying to do but the syntax is not completely correct because it is missing a $ character. The right syntax to use is: WHERE clinica LIKE '%$P{clinicaname}%'. Remember also to use the type Raw or Generic for the parameter clinicaname.

I hope you find this information useful, but if you were looking for something different, please answer again!

answered Mar 30, 2021 by ifassi (3,580 points)

Thank you ifassi, now it works!

Really my problem was the type i had chosen "string" and it didn't work.

Regards.

1,555 questions
1,017 answers
2,038 comments
2,568 users