Re: functions with plpgsql

Поиск
Список
Период
Сортировка
От Bernd Hoffmann
Тема Re: functions with plpgsql
Дата
Msg-id 025d01c35ed7$0ad4e590$3214a8c0@server
обсуждение исходный текст
Ответ на functions with plpgsql  ("Bernd Hoffmann" <info@unixserver.info>)
Ответы Re: functions with plpgsql
Список pgsql-php
Hallo Andy,

> I do not think you can evaluate a declared vairable as a table name in the
> SELECT statement.

where can I find some docu about declare a table by variable.

> I don't think you really need to do this though.  If you have the table
name
> already.
> why go:
> SELECT next_id(logs);
> SELECT MAX(id) + 1 FROM logs;

it's only a example, I got everytime the error:

PostgreSQL meldet: ERROR: parser: parse error at or near "$1"

PS.: Excuse me, for my bad english :)

MfG

Bernd



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

Предыдущее
От: "Andrew J. Kopciuch"
Дата:
Сообщение: Re: functions with plpgsql
Следующее
От: Brad Bulger
Дата:
Сообщение: Re: functions with plpgsql