Default values? - Mailing list pgsql-general

From brichard@cafod.org.uk (Bruce Richardson)
Subject Default values?
Date
Msg-id 20010217173017.A2363@usb.cafod.org.uk
Whole thread Raw
List pgsql-general
If I wanted to create a table in such a way that the default value of
one column is the value of another column (or the oid value), is there
a way to do that in the CREATE TABLE statement (with the DEFAULT
keyword, I'd imagine)?  Or would I need to create a trigger?

--
Bruce

pgsql-general by date:

Previous
From: brichard@cafod.org.uk (Bruce Richardson)
Date:
Subject: Function reference
Next
From: John Madden
Date:
Subject: DBD::Pg problem?