From: Doug Hyde <doug.hyde@e-cocreate.com>
To: pgsql-sql@postgresql.org
Subject: How to autoincrement a primary key...
Date: Fri, 22 Sep 2006 15:13:46 -0400
Message-ID: <000001c6de7b$3a211c70$6501a8c0@laptop> (raw)
In-Reply-To: <1158936962.5218.4.camel@localhost.localdomain>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: doug.hyde@e-cocreate.com
Subject: Re: How to autoincrement a primary key...
In-Reply-To: <000001c6de7b$3a211c70$6501a8c0@laptop>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox