I want to create select Query in Postgresql. my code is
select * into concat('production.',layer_name) from concat('staging.',layer_name);
but there is a problem
ERROR: "concat" is not a known variable
LINE 20: select * into concat('production.'layer_name) from concat('...
I can not understand why .
Can anybody help me?