how use declare variable in DataGrip? not work ((

Hello, I have use variable in my sql script in  postgres,, but have a problem in consol  syntax error  in my script

how a fix this problem?

------------

declare  myvar int;        

sql> declare myvar int;


[2018-05-22 11:59:40] [42601] ОШИБКА: ошибка синтаксиса (примерное положение: "int")

Please sign in to leave a comment.