Re: self defined counter function

Поиск
Список
Период
Сортировка
От Enrico Ortmann
Тема Re: self defined counter function
Дата
Msg-id 808772948.20040420152540@radax.net
обсуждение исходный текст
Ответ на Re: self defined counter function  ("Paul Breen" <pbreen@computerpark.co.uk>)
Список pgsql-admin
Hi Paul,

PB>   select code from codes where code_urn = (select nextval('code_urn_seq'));

Yes this is a great idea, but it only manages
one character. But I need a counter with
at least a variable length and it has to be
filled with leading zero-values, so that
the length of the generated counter value
is everytime I call the function the same.

Enrico Ortmann

----------------------------------------



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

Предыдущее
От: "Paul Breen"
Дата:
Сообщение: Re: self defined counter function
Следующее
От: CoL
Дата:
Сообщение: Re: Going from a DB using SQL_ASCII to UNICODE