> SELECT INTO _id id FROM _tabela order by id desc limit 1;
ok I ve found that
EXECUTE 'SELECT id FROM ' || quote_ident(_tabela) ||' order by id desclimit 1' INTO _id;