How to autoincrement a primary key...

Поиск
Список
Период
Сортировка
От Doug Hyde
Тема How to autoincrement a primary key...
Дата
Msg-id 000001c6de7b$3a211c70$6501a8c0@laptop
обсуждение исходный текст
Ответ на Re: Group by minute  (Scott Marlowe <smarlowe@g2switchworks.com>)
Ответы Re: How to autoincrement a primary key...
Список pgsql-sql
I am sure this is simple, but I don't get it. I am new to PGSQL, coming from
MySQL - in mysql, you can autoincrement the primary key; in postgre, I am
not sure how to do this. I have read the documentation, and tried "nextval"
as the default - I have searched for the datatype SERIAL, but I am using
navicat and this datatype is not supported. Can someone tell me how to do
this - I just want the integer value for a primary key to autoincrement by
one. 

Thanks,

Doug



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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: nested select within a DISTINCT block
Следующее
От: Richard Broersma Jr
Дата:
Сообщение: Re: How to autoincrement a primary key...