From: Tom Lane <tgl@sss.pgh.pa.us>
To: Seth Banks <seth@subimage.com>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] Default sequence values
Date: Sun, 27 Feb 2000 02:48:20 -0500
Message-ID: <20756.951637700@sss.pgh.pa.us> (raw)
In-Reply-To: <NOEPJACOBMIOEOLHKIODIEFLCBAA.seth@subimage.com>
References: <NOEPJACOBMIOEOLHKIODIEFLCBAA.seth@subimage.com>
"Seth Banks" <seth@subimage.com> writes:
> company_id int4 PRIMARY KEY DEFAULT nextval(company_id_seq),
Try
company_id int4 PRIMARY KEY DEFAULT nextval('company_id_seq'),
Actually, this would work just as well:
company_id SERIAL,
and it'd even make the sequence object for you.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, seth@subimage.com
Subject: Re: [SQL] Default sequence values
In-Reply-To: <20756.951637700@sss.pgh.pa.us>
References: <NOEPJACOBMIOEOLHKIODIEFLCBAA.seth@subimage.com> <20756.951637700@sss.pgh.pa.us>
* 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