Jump to content

How to write in clause on where condition for a sql


das.sujit1

Recommended Posts

I have a query like this 

SELECT * FROM CATEGORY  CAT WHERE   CAT.CAT_CAT_NO  =$P{employerRefNumber} 

Now I want to pass in cluse in where condition like

SELECT * FROM CATEGORY  CAT WHERE   CAT.CAT_CAT_NO  in ($P{employerRefNumber} )

value of employerRefNumber should be 'C001','C002' like this.

Kindly guide me proper sysntex of this query in jasper report

 

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 4 weeks later...

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...