SERIAL parameters

Поиск
Список
Период
Сортировка
От Arnold Putong
Тема SERIAL parameters
Дата
Msg-id 64261.10.33.12.1.1030507385.squirrel@www.engg.upd.edu.ph
обсуждение исходный текст
Ответы Re: SERIAL parameters
Список pgsql-sql
Would it be possible to have parameters in the SERIAL datatype?

CREATE TABLE x { ID  SERIAL(100, 10) }

means ID starts at 100 and will be incremented by 10.  And it would be
nice to have

CREATE TABLE x { ID  SERIAL(0,0) }

mean that ID will be issued random non-repeating values (period=2^bitwidth
of type).  This is most likely useful in replication/merging data.




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