Jump to content

Query with LIKE %...%


asder99

Recommended Posts

Hi!

I've got a problem with a query.

 

The original query is this:

Select id, name, description
from table_01
where name like '%roger%'

I need to use this query in iReport, but "roger" should be a variable.

So I write:

Select id, name, description
from table_01
where name like '%$P{px_name}%'

But it doesn't work.

Where can I find a guide to insert correctly an iReport variable in a query?

 

Thanks!

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...