I am trying to add dates into an array from a select query.
I am getting this error:
SQL Error [22P02]: ERROR: malformed array literal: "2021-04-02"
declare dateval date[];
begin
select days into dateval from holidays where days between '2021-01-01' and '2021-12-31' and city='NY';
then I need to compare this array in if statement my date variable in this dateval array do something or go to else like that