pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Lewis <mark.lewis@mir3.com>
To: Guy Rouillier <guyr@masergy.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Fields
Date: Wed, 31 May 2006 13:56:13 -0700
Message-ID: <1149108973.20798.3.camel@archimedes> (raw)
In-Reply-To: <D4D1632DC736E74AB95FE78CD60900790126AC@mtxexch01.add0.masergy.com>
References: <D4D1632DC736E74AB95FE78CD60900790126AC@mtxexch01.add0.masergy.com>

On Wed, 2006-05-31 at 15:51 -0500, Guy Rouillier wrote:
> Charles Curi wrote:
> > Hi people!!!
> > I have a table called "orders" with fields "a","b" and "c".
> > I want to make a INSERT only of fields "a" and "b" by Java and at
> > this moment c=a*b; Is it possible?
> 
> I think you are saying you want your Java code to insert fields "a" and
> "b" and have "c" automatically set to a value derived from "a" and "b".
> If so, you can accomplish this with an insert trigger.
> 

Or you could just insert a, b and a*b yourself . . . . or am I missing
something here?

-- Mark



view thread (4+ messages)  latest in thread

Message-ID: <1149108973.20798.3.camel@archimedes>
Permalink:  ../1149108973.20798.3.camel@archimedes/
Also on:    postgresql.org/message-id/1149108973.20798.3.camel@archimedes

 · 

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-jdbc@postgresql.org
  Cc: mark.lewis@mir3.com, guyr@masergy.com
  Subject: Re: Fields
  In-Reply-To: <1149108973.20798.3.camel@archimedes>
  References: <D4D1632DC736E74AB95FE78CD60900790126AC@mtxexch01.add0.masergy.com> <1149108973.20798.3.camel@archimedes>

* 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