Re: Learning Plpgsql ??

Поиск
Список
Период
Сортировка
От Jim Beckstrom
Тема Re: Learning Plpgsql ??
Дата
Msg-id 3E30BF58.1060302@sbcglobal.net
обсуждение исходный текст
Ответ на Learning Plpgsql ??  (Jonathon Batson <jonathon@octahedron.com.au>)
Ответы Re: Learning Plpgsql ??
Список pgsql-novice
Coming from another newbie, here's what I use to set the sequence
following an import of text data.  I create seqence and table and import
one file at a time, for a one time conversion, so I don't need the table
of table names,etc., but that's a great idea, like a data dictionary
concept.  Would this work, modified to fit your loop syntax?

select SETVAL('link_rep_link_rep_id_seq', (select max(link_rep_id) from
link_rep))

Jim



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

Предыдущее
От: "Roman Fail"
Дата:
Сообщение: Re: Learning Plpgsql ??
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Long time Vacuum full