Postgresql – How to substitute variable in postgres?
Hi I am working in Postgres. I have below code DO $$ DECLARE item integer; begin item:=5; DROP TABLE IF EXISTS temp_data; CREATE temp TABLE temp_data AS select current_timestamp + interval '1 day' as op; END $$; select * from…