0

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?

Ralf Stubner
  • 25,305
  • 3
  • 37
  • 71

0 Answers0