How to autoincrement a primary key...

From: "Doug Hyde" <doug(dot)hyde(at)e-cocreate(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: How to autoincrement a primary key...
Date: 2006-09-22 19:13:46
Message-ID: 000001c6de7b$3a211c70$6501a8c0@laptop
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Broersma Jr 2006-09-22 19:25:41 Re: How to autoincrement a primary key...
Previous Message Bruno Wolff III 2006-09-22 17:28:41 Re: nested select within a DISTINCT block