I have a query like below:
if extract(dow from current_date)=1 then
select * form dev
else
select * from dev1
end if
Error:
ERROR: syntax error at or near "if" LINE 1: if extract(dow from current_date)=1 then
How can I perform ddl
and dml
operation in single execution?