pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Artacus <artacus@comcast.net>
To: pgsql-general@postgresql.org
Subject: Re: Sequences
Date: Thu, 19 Jun 2008 00:20:08 -0700
Message-ID: <485A08A8.70306@comcast.net> (raw)
In-Reply-To: <9B6AE1F27D0B459AA36DEC47A1A05AFE@PC1>
References: <9B6AE1F27D0B459AA36DEC47A1A05AFE@PC1>


>  
> I want to create a sequence that increases in unit column 3 for each 
> record individually in column 2
>  
> How do i create a sequence that can manage this?
> Is there a solution for this?
>  
Yeah, depesz shows how to do this here
http://www.depesz.com/index.php/2007/08/17/rownum-anyone-cumulative-sum-in-one-query/



view thread (16+ messages)  latest in thread

Message-ID: <485A08A8.70306@comcast.net>
Permalink:  ../485A08A8.70306@comcast.net/
Also on:    postgresql.org/message-id/485A08A8.70306@comcast.net

 · 

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-general@postgresql.org
  Cc: artacus@comcast.net
  Subject: Re: Sequences
  In-Reply-To: <485A08A8.70306@comcast.net>
  References: <9B6AE1F27D0B459AA36DEC47A1A05AFE@PC1> <485A08A8.70306@comcast.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