Re: syntax error with execute

From: "A B" <gentosaker(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: syntax error with execute
Date: 2008-06-02 07:48:12
Message-ID: dbbf25900806020048p4d650bfbned50c0f0409f066@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Hermann Muster 2008-06-02 09:23:40 Accessing other databases with DBLink when leaving user/password empty
Previous Message A B 2008-06-02 07:38:12 Re: Connection problem