pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Macky <macky@edsamail.com>
To: Postgresql-Sql <pgsql-sql@postgresql.org>
Subject: AUTOINCREMENT--help
Date: Tue, 2 Jan 2001 10:23:23 +0800
Message-ID: <003701c07462$fb451700$5764a8c0@edsamail.com> (raw)

Is there a function in SQL that does autoincrementing...

eg.

CREATE TABLE (name varchar(40),num_id int);

wherein num_id starts with 0 and then when ever I INSERT another record
num_id goes 1 etc....

Thanks in advance............




view thread (2+ messages)  latest in thread

Message-ID: <003701c07462$fb451700$5764a8c0@edsamail.com>
Permalink:  ../003701c07462$fb451700$5764a8c0@edsamail.com/
Also on:    postgresql.org/message-id/003701c07462$fb451700$5764a8c0@edsamail.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: macky@edsamail.com
  Subject: Re: AUTOINCREMENT--help
  In-Reply-To: <003701c07462$fb451700$5764a8c0@edsamail.com>
  References: <003701c07462$fb451700$5764a8c0@edsamail.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