Re: Fields

From: "Guy Rouillier" <guyr(at)masergy(dot)com>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Fields
Date: 2006-05-31 20:51:39
Message-ID: D4D1632DC736E74AB95FE78CD60900790126AC@mtxexch01.add0.masergy.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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.

--
Guy Rouillier

Responses

  • Re: Fields at 2006-05-31 20:56:13 from Mark Lewis

Browse pgsql-jdbc by date

  From Date Subject
Next Message Mark Lewis 2006-05-31 20:56:13 Re: Fields
Previous Message Charles Curi 2006-05-31 19:47:52 Fields