Re: [HACKERS] DROPping tables with SERIALs
От | Bruce Momjian |
---|---|
Тема | Re: [HACKERS] DROPping tables with SERIALs |
Дата | |
Msg-id | 199812020121.UAA08410@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: [HACKERS] DROPping tables with SERIALs (Vadim Mikheev <vadim@krs.ru>) |
Список | pgsql-hackers |
> The SERIAL data type is not automatically a unique column. > You must apply a unique index to this column to prevent > duplicate serial numbers. If you use the interactive schema > editor in DB-Access to define the table, a unique index is > applied automatically to a SERIAL column. > > http://www.informix.com/answers/english/pdf_docs/gn7382/4366.pdf > > You can specify a nonzero value for a serial column > (as long as it does not duplicate any existing value in that column), ... > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > ?!!! You can assign a value to a serial column, as long as it is unique. -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
В списке pgsql-hackers по дате отправления: