tanatpan_w Posted January 25, 2021 Share Posted January 25, 2021 I used PostgreSQL in the past. And I'm creating a Jasper report that includes the following parameters:DATESTART (Date)Example : PostgreSQL Queryselect * from TB1 where A >= $P{DATESTART} and A < $P{DATESTART} + 1 dayIs there any way to do something similar in Jasper Reports (PostgreSQL)? Link to comment Share on other sites More sharing options...
tanatpan_w Posted January 27, 2021 Author Share Posted January 27, 2021 select * from TB1 where A >= $P{DATESTART} and A < $P{DATESTART} + INTERVAL '1 Day' Link to comment Share on other sites More sharing options...
tanatpan_w Posted January 27, 2021 Author Share Posted January 27, 2021 select * from TB1 where A >= $P{DATESTART} and A < to_date($P{DATESTART},'yyyy-MM-dd') + INTERVAL '1 Day' Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now