| От | David Rugge |
|---|---|
| Тема | Re: [SQL] auto_increment? |
| Дата | |
| Msg-id | 9910211213320C.02803@joplin обсуждение исходный текст |
| Ответ на | auto_increment? (Rodrigo Bernardo Pimentel <rbp@pobox.com>) |
| Список | pgsql-sql |
On Thu, 21 Oct 1999, you wrote: > When I noticed MySQL didn't have sequences, I cursed a lot. When I >found this out, though, I kept wondering if Postgres also had it, but I >couldn't find any mention in the documentation. Does anyone know if something >similar exists? Am I doing thins the hard way? Is there any other way of >automagically getting unique ids? > TIA, Use the serial datatype. It automatically creates a sequence for you that increments each time you do an insert, -- -David Rugge http://www.mindspring.com/~davidrugge/index.html
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера