Re: syntax error with execute

From: "Vyacheslav Kalinin" <vka(at)mgcp(dot)com>
To: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
Cc: "A B" <gentosaker(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: syntax error with execute
Date: 2008-05-30 21:04:52
Message-ID: 9b1af80e0805301404q4a0cd4e5n767fbc1b2d445985@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'

You probably were to do:

EXECUTE 'INSERT INTO '||tablename||' ('||fields||') VALUES
('||vals||') RETURNING currval('''||seqname||''')' INTO newid

Note where last quote goes.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gurjeet Singh 2008-05-30 21:16:31 Re: syntax error with execute
Previous Message Scott Marlowe 2008-05-30 20:21:20 Re: syntax error with execute