Jump to content
JasperReports Library 7.0 is now available ×

Problem with LIKE statement


Recommended Posts

By: den chong - den06boy

Problem with LIKE statement

2003-09-30 02:55

There is error when i was trying these SQL statement:

select * from T_COUNTRY_MASTER

where COUNTRYCODE LIKE '%$P{countrycode}%'

 

and

 

select * from T_COUNTRY_MASTER

where COUNTRYCODE LIKE %$P{countrycode}%

 

how can i make these sql works?

 

 

By: Giulio Toffoli - gt78

RE: Problem with LIKE statement

2003-09-30 03:39

 

Try this syntax:

 

select * from T_COUNTRY_MASTER

where COUNTRYCODE LIKE '%$P!{countrycode}%'

Link to comment
Share on other sites

  • Replies 0
  • 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...