Re: Problem running or executing a function in Postgresql

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Problem running or executing a function in Postgresql
Дата
Msg-id 20050901101053.GA26810@winnie.fuhr.org
обсуждение исходный текст
Ответ на Problem running or executing a function in Postgresql  ("Venki" <Venki@insoft.com>)
Список pgsql-general
On Thu, Sep 01, 2005 at 11:58:27AM +0530, Venki wrote:
>
> new_id = EXECUTE("SELECT FROM currval("mydata_id_seq")");

The above line has quoting problems and an erroneous SELECT query,
and it wouldn't work anyway because that's not the way to retrieve
results from EXECUTE.  Aside from that, EXECUTE isn't necessary in
this case.  Try this:

new_id := currval(''mydata_id_seq'');

--
Michael Fuhr

В списке pgsql-general по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Problem running or executing a function in Postgresql
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: syslog message I do not understand