I have a sql that retrieves data based on certain date and my Java application calls a plsql — Oracle to do so.
The new request is to get data based on more than one date selection made on the screen .
I tried to form these dates as comma separated string and pass this as an varchar input argument ‘I_dates’for pl/SQL . At Pl/sql end I tried using IN clause for the where condition but I get an error that I_dates is a invalid identifier.
Question : I tried running the sql separately using multiple date conditions and it works fine .
Select * from table1 where date in (‘2019-05-01’, ‘2019-06-01’) works fine.
But the same sql inside the plsql with the date input argument (I_dates where value of I_dates is ‘2019-05-01’, ‘2019-06-01’) does not work and says I_date is invalid identifier
How can I achieve getting results for multiple date conditions in pl/sql