pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fay Du <fay.du@versaterm.com>
To: pgsql-sql@postgresql.org
Subject: Update question
Date: Tue, 28 Mar 2006 11:41:39 -0500
Message-ID: <00b801c65286$7ca8f260$b8d849c6@versaterm.com> (raw)

Hi all:
 
I have a table like this:
 
Table cost
Id  edge_id    cost
1       30         101.4
2       30          null
3       40          500.2
4       40           null
5        45          300.7
6        45           null
 
I want to set cost value with same edge_id by same value. The existing
values are calculated by calling a function (calculate edge length). I
can calculate the value by same function, but the function was slow. I
wander if I can use update statement to set the second value with same
edge_id. Thanks in advance for your help.
 
Fay
 

view thread (11+ messages)  latest in thread

Message-ID: <00b801c65286$7ca8f260$b8d849c6@versaterm.com>
Permalink:  ../00b801c65286$7ca8f260$b8d849c6@versaterm.com/
Also on:    postgresql.org/message-id/00b801c65286$7ca8f260$b8d849c6@versaterm.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: fay.du@versaterm.com
  Subject: Re: Update question
  In-Reply-To: <00b801c65286$7ca8f260$b8d849c6@versaterm.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