| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Alexey Prohorenko <green(at)usa(dot)dp(dot)ua> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: autoincrement |
| Date: | 2001-10-25 21:11:33 |
| Message-ID: | 200110252111.f9PLBXv27243@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
Use SERIAL instead of AUTO_INCREMENT.
> How can I reproduce in PostgreSQL type structure from MySQL:
> INT NOT NULL PRIMARY KEY AUTO_INCREMENT
>
> ?
>
> To be more exact -- in two words: "how can I create autoincrement
> field?"
>
> Thanks a lot.
>
> --
> green
> [http://www.extrasy.net]
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Aasmund Midttun Godal | 2001-10-25 21:22:44 | Re: autoincrement |
| Previous Message | Alexey Prohorenko | 2001-10-25 20:09:32 | autoincrement |