pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Volker Paul <vpaul@dohle.com>
To: Kaare Rasmussen <kar@webline.dk>
Cc: PostgreSQL-SQL <pgsql-sql@postgresql.org>
Subject: Re: Invoice number
Date: Thu, 21 Dec 2000 12:01:57 +0100
Message-ID: <3A41E325.C8E5D7EF@dohle.com> (raw)
References: <00122111100003.25042@bering>

Hi,

> I'm wondering how people creates guaranteed sequential numbers - in my case
> for invoice numbers.

See the PostgreSQL book p. 85 and 250, and the online doc about serials:
CREATE TABLE person ( id SERIAL, name TEXT );


Volker Paul



view thread (12+ messages)  latest in thread

Message-ID: <3A41E325.C8E5D7EF@dohle.com>
Permalink:  ../3A41E325.C8E5D7EF@dohle.com/
Also on:    postgresql.org/message-id/3A41E325.C8E5D7EF@dohle.com

 · 

reply

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: vpaul@dohle.com, kar@webline.dk
  Subject: Re: Invoice number
  In-Reply-To: <3A41E325.C8E5D7EF@dohle.com>
  References: <00122111100003.25042@bering> <3A41E325.C8E5D7EF@dohle.com>

* 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