Re: Newbie-question

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: Newbie-question
Дата
Msg-id m3u15tpe2k.fsf@varsoon.wireboard.com
обсуждение исходный текст
Ответ на Newbie-question  (Victor Spång Arthursson <victor@tosti.dk>)
Список pgsql-general
Victor Spång Arthursson <victor@tosti.dk> writes:

> Thanks for the fast answer! There doesn't seem to be any pgadmin for
> OS X, but perhaps it's possible to run in X11… I also tried out the
> phppgadmin, which I found lacking some important features that are
> availible in its counterpart for mysql, the phpmyadmin; for example
> the possibility to set autoincrement on fields.

That's done by declaring the column as type SERIAL in the first
place.  You can add it after the fact by creating a sequence and doing
ALTER TABEL ALTER COLUMN ADD DEFAULT nextval('myseq')--check the docs
for the exact syntax.  I don't know if phppgadmin lets you modify
defaults easily, but you can always just send the above query
directly...

-Doug

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Newbie-question
Следующее
От: Jim Crate
Дата:
Сообщение: Re: shared memory on OS X - 7.4beta4