Postgres Declare Variable In Function In Excel