pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Davis <mdavis@sevainc.com>
To: 'Sylte' <Sylte_@hotmail.com>
To: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: RE: Auto incrementing an integer
Date: Mon, 14 May 2001 19:33:06 -0600
Message-ID: <01C0DCAC.B3BB8330.mdavis@sevainc.com> (raw)

Try the serial data type or add "DEFAULT nextval('Invoice_s')" to the 
column definition where Invoice_s is the name of a sequence that you have 
created.

Hope this helps, Michael

-----Original Message-----
From:	Sylte [SMTP:Sylte_@hotmail.com]
Sent:	Monday, May 14, 2001 7:02 AM
To:	pgsql-sql@postgresql.org
Subject:	Auto incrementing an integer

How do I construct a datatype that autoincrement in postgreSQL?

Thanks
Sylte




---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)




view thread (6+ messages)

Message-ID: <01C0DCAC.B3BB8330.mdavis@sevainc.com>
Permalink:  ../01C0DCAC.B3BB8330.mdavis@sevainc.com/
Also on:    postgresql.org/message-id/01C0DCAC.B3BB8330.mdavis@sevainc.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mdavis@sevainc.com, Sylte_@hotmail.com
  Subject: RE: Auto incrementing an integer
  In-Reply-To: <01C0DCAC.B3BB8330.mdavis@sevainc.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