Re: [GENERAL] PostgreSQL with PowerBuilder, and Identity keys (serials)

Поиск
Список
Период
Сортировка
Искать
От
Karl Czajkowski
Тема
Re: [GENERAL] PostgreSQL with PowerBuilder, and Identity keys (serials)
Дата
Msg-id
20170806002502.GA11648@moraine.isi.edu
Ответ на
Список
Дерево обсуждения
[GENERAL] PostgreSQL with PowerBuilder, and Identity keys (serials) "Dan Cooperstock at Software4Nonprofits" <info@software4nonprofits.com>
Re: [GENERAL] PostgreSQL with PowerBuilder, and Identity keys (serials) Melvin Davidson <melvin6925@gmail.com>
Re: [GENERAL] PostgreSQL with PowerBuilder, and Identity keys (serials) "Dan Cooperstock at Software4Nonprofits" <info@software4nonprofits.com>
Re: [GENERAL] PostgreSQL with PowerBuilder, and Identity keys(serials) Rob Sargent <robjsargent@gmail.com>
Re: [GENERAL] PostgreSQL with PowerBuilder, and Identity keys (serials) "Dan Cooperstock at Software4Nonprofits" <info@software4nonprofits.com>
Re: [GENERAL] PostgreSQL with PowerBuilder, and Identity keys (serials) Karl Czajkowski <karlcz@isi.edu>
Re: [GENERAL] PostgreSQL with PowerBuilder, and Identity keys (serials) "Dan Cooperstock at Software4Nonprofits" <info@software4nonprofits.com>
Re: [GENERAL] PostgreSQL with PowerBuilder, and Identity keys (serials) Igor Korot <ikorot01@gmail.com>
[GENERAL] PostgreSQL with PowerBuilder, and Identity keys (serials) "David G. Johnston" <david.g.johnston@gmail.com>
Re: [GENERAL] PostgreSQL with PowerBuilder, and Identity keys (serials) "Dan Cooperstock at Software4Nonprofits" <info@software4nonprofits.com>
Re: [GENERAL] PostgreSQL with PowerBuilder, and Identity keys (serials) Igor Korot <ikorot01@gmail.com>
Re: [GENERAL] PostgreSQL with PowerBuilder, and Identity keys (serials) Melvin Davidson <melvin6925@gmail.com>
Re: [GENERAL] PostgreSQL with PowerBuilder, and Identity keys (serials) "Dan Cooperstock at Software4Nonprofits" <info@software4nonprofits.com>
Re: [GENERAL] PostgreSQL with PowerBuilder, and Identity keys(serials) Rick Widmer <pgsql@rickwidmer.com>

>   Select currval('GEN_&TableName')
>

From the above, I am assuming you did something like:

   CREATE SEQUENCE "GEN_&TableName" ...;

and are trying to access this sequence?  If so, you actually have to
include the SQL quoted identifier syntax within the text argument to
currval() or nextval(), e.g.

   SELECT nextval('"GEN_&TableName"');

With these sorts of identifier-as-argument parameters in Postgres, you
can also include schema-qualification syntax:

   SELECT nextval('"My Schema"."GEN_&TableName"');


Karl


В списке pgsql-general по дате отправления
От: Rick Widmer
Дата:
От: Dan Cooperstock at Software4Nonprofits
Дата:
FAQ