Jump to content
We've recently updated our Privacy Statement, available here ×

Build Query Dinamically


ardn0001

Recommended Posts

Hi want build my main query dinamically of course using parameters, the only requeriment that we need is receive SQL operator throught a Paramater or a Function, how can I do this, is a designer issue or JasperReports problem?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

you can use the syntax $P!{parameter_name}

with $P!{} you can pass values that aren't treated as values to be transfered to a prepared statement, but it represents little "sql-piece" of the query you use...

so you can create a very dinamic query passing the correct sql code.

 

_________________________________________

if it works... give me KARMA points please!    : ) 
_________________________________________

listening: Jesus And Mary Chain - Snakedriver

 

 

Link to comment
Share on other sites

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