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

$P{parameterName} in sql statement (fetch first N rows only)


grl

Recommended Posts

If I try to include a parameter in my sql statement 

select * from table where (...) group by (...) fetch first $P{param} rows only

I get the error "mismatched input '$P{param}' expecting RULE_INT"

$P{param} should evaluate to an integer, as set by the user.

How could this error be avoided ? 

Thanks !

 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 year 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...