help please

From: "Dorward Villaruz" <dorwardv(at)ntsp(dot)nec(dot)co(dot)jp>
To: "Postgres General" <pgsql-general(at)postgresql(dot)org>
Subject: help please
Date: 2002-09-02 14:48:50
Message-ID: 000c01c2528f$d9e4b2c0$043d1cac@speed
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

i need to create a table with this property

the fields are f1 integer , f2 integer , f3 integer defaults to f1 + f2

is this possible? how?

i have created something like this

create table table1(a integer not null unique primary key, b integer not null, c not null default a + b)

thanks

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ericson Smith 2002-09-02 14:55:16 Re: php
Previous Message Robert Treat 2002-09-02 14:31:25 Re: php