> EXECUTE 'INSERT INTO '||tablename||' ('||fields||') VALUES> ('||vals||') RETURNING currval('''||seqname||''')' INTO newid>> Note where last quote goes.
That was exactly what I wanted to do!
SELECT 'Thank you' FROM heart;