help please - Mailing list pgsql-general

From Dorward Villaruz
Subject help please
Date
Msg-id 000c01c2528f$d9e4b2c0$043d1cac@speed
Whole thread Raw
List 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
 

pgsql-general by date:

Previous
From: Matthew Nuzum
Date:
Subject: getting y/n or 1/0 from bool fields
Next
From: Matthew Nuzum
Date:
Subject: Re: php