pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kaare Rasmussen <kar@webline.dk>
To: pgsql-sql@postgresql.org
Subject: Re: new serial type
Date: Sat, 13 Jan 2001 12:37:34 +0100
Message-ID: <01011312373400.24341@bering> (raw)
In-Reply-To: <7j3denn367.fsf@junk.nocrew.org>
References: <7j3denn367.fsf@junk.nocrew.org>

Den lørdag 13. januar 2001 11:42 skrev Rolf Johansson:
> Is there some function to change the serial type to, instead of reading
> a next-value, read the maxium value in a column and then add x? If, for

You can use setval(sequence, number) and MAX(number) in combination.

-- 
Kaare Rasmussen            --Linux, spil,--        Tlf:        3816 2582
Kaki Data                tshirts, merchandize      Fax:        3816 2501
Howitzvej 75               Åben 14.00-18.00        Email: kar@webline.dk
2000 Frederiksberg        Lørdag 11.00-17.00       Web:      www.suse.dk



view thread (2+ messages)

Message-ID: <01011312373400.24341@bering>
Permalink:  ../01011312373400.24341@bering/
Also on:    postgresql.org/message-id/01011312373400.24341@bering

 · 

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: kar@webline.dk
  Subject: Re: new serial type
  In-Reply-To: <01011312373400.24341@bering>
  References: <7j3denn367.fsf@junk.nocrew.org> <01011312373400.24341@bering>

* 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