Re: Fields - Mailing list pgsql-jdbc

From Guy Rouillier
Subject Re: Fields
Date
Msg-id D4D1632DC736E74AB95FE78CD60900790126AC@mtxexch01.add0.masergy.com
Whole thread Raw
In response to Fields  ("Charles Curi" <charles.curi@gmail.com>)
Responses Re: Fields
List 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

pgsql-jdbc by date:

Previous
From: "Charles Curi"
Date:
Subject: Fields
Next
From: Mark Lewis
Date:
Subject: Re: Fields