| От | Marin Dimitrov |
|---|---|
| Тема | Re: auto increment primary key |
| Дата | |
| Msg-id | 001301c1dc8c$e24fd760$9b0e32d4@sirma.bg обсуждение |
| Ответ на | auto increment primary key (impala <bhnnc@yahoo.co.uk>) |
| Список | pgsql-general |
----- Original Message -----
From: "impala"
> I created a table, want the integer/varchar primary
> key column to be incremented automatically when
> inserted a new row. How do I define the table to do
> that? I tried AUTO_INCREMENT and INCREMENT but
> postgres accept none of them.
>
search docs for "sequence" and "serial"
how do u increment a varchar?
Marin
----
"...what you brought from your past, is of no use in your present. When
you must choose a new path, do not bring old experiences with you.
Those who strike out afresh, but who attempt to retain a little of the
old life, end up torn apart by their own memories. "
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера