Get a list of years
Confluence User - 03 Dec, 2020
Hi,
I want to have a select box with a list of years.
I am using JDBC Binder and write the SQL statement.
select year from (select 2004 as year union all select yl.year + 1 as year from yearlist yl where yl.year + 1 <= YEAR(GetDate())) order by year desc;
It doesn't work well. Any suggestion? Thank you.
jdbc