Re: Auto Increment

Поиск
Список
Период
Сортировка
От Joe Barrero
Тема Re: Auto Increment
Дата
Msg-id 4F07A1CC8DDE404CB6B84C5DE431F6E601CAFC@exchange1.Sweepsclub.com
обсуждение исходный текст
Ответ на Auto Increment  ("Mayuresh Kadu" <mayureshk@aftek.com>)
Список pgsql-sql
create table mytable (
myfield serial primary key,
myotherfield integer);

Using the SERIAL data type automatically creates the sequence and default
statements for you.

-----Original Message-----
From: Mayuresh Kadu [mailto:mayureshk@aftek.com]
Sent: Monday, October 22, 2001 2:36 AM
To: pgsql-sql@postgresql.org
Subject: [SQL] Auto Increment

hi all,

could anyone tell me how to make a primary key to AUTO INCREMENT. The
document is not exactly very explainatory about it :)

Thankx in advance ...



Mayuresh



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: dropping foreign key
Следующее
От: san
Дата:
Сообщение: Re: PL/pgSQL triggers ON INSERT OR UPDATE