From: Jeremiah Davis <jdavis@gaslightmedia.com>
To: Roy Sigurd Karlsbakk <roy@christianianett.no>
Cc: pgsql-general@postgreSQL.org <pgsql-general@postgreSQL.org>
Subject: Re: [GENERAL] The use of sequences
Date: Tue, 18 Aug 1998 11:54:08 -0400 (EDT)
Message-ID: <Pine.3.89.9808181137.A20075-a200000@onramp.freeway.net> (raw)
In-Reply-To: <35D9924F.3506064E@christianianett.no>
CREATE SEQUENCE some_sequence start 1 increment 1;
CREATE TABLE person (
id int4 default nextval('some_sequence'),
name varchar(200),
description text);
INSERT INTO person VALUES(nextval('some_sequence'),'Jeremiah','not much');
or
INSERT INTO person(name,description) VALUES('Jeremiah','not much');
On Tue, 18 Aug 1998, Roy Sigurd Karlsbakk wrote:
> Could somebody tell me how I can make efficient use of sequences? I am
> familiar with Oracle's sequences and they usually work as the following
> example:
> INSERT INTO PERSON table(some_sequence.nextval,data,data,data);
>
> How do they work in postgreSQL?
>
> Roy
>
> --
> Roy Sigurd Karlsbakk - MCSE, CNE, CLS, ASE - <roy@christianianett.no>
> ChristianiaNett A/S, Akersgt. 11, 0158 OSLO, +47 2247 3100
> http://www.christianianett.no/ (norwegian)
>
>
Attachments:roy.vcf (text/x-vcard, 202B) download
begin:vcard
n:Karlsbakk;Roy Sigurd
x-mozilla-html:FALSE
org:ChristianiaNett A/S
version:2.1
email;internet:roy@christianianett.no
title:Seniorkonsulent
x-mozilla-cpt:;0
fn:Roy Sigurd Karlsbakk
end:vcard
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: jdavis@gaslightmedia.com, roy@christianianett.no, pgsql-general@postgreSQL.org
Subject: Re: [GENERAL] The use of sequences
In-Reply-To: <Pine.3.89.9808181137.A20075-a200000@onramp.freeway.net>
References: <35D9924F.3506064E@christianianett.no> <Pine.3.89.9808181137.A20075-a200000@onramp.freeway.net>
* 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