Forum Discussion

st-pat's avatar
st-pat
Occasional Contributor
7 years ago

JDBC like statement

Hi community,

I've been struggling with this issue for some time now but I found some workarounds, but now I need it and can't really find a good answer for me. I need to use in a jDBC query the 'like' statement and with all combos I could think of or find I always end up in an error.
So select * from frc where service like 'CLI%' works out fine,
the problem might be that I use a property in this query so it's  select * from frc where service like :ser% (I've tried * and ? , and even '%')

any ideas or hints ?
Thnx in advance