Search Postgresql Archives

Re: syntax error with execute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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;


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux