When I using query to select values to temp table like this:
drop table if exists tTemp;
select tt.id, tt.name
into tTemp
from test.TestTable tt
It's work great. But when I using this construction in function I have this error:
[42601] ERROR: "tTemp" is not a known variableq
Why this construction don't work in function?
intohas a different meaning in PL/pgSQL code. See the documentation