Default values?

From: brichard(at)cafod(dot)org(dot)uk (Bruce Richardson)
To: pgsql-general(at)postgresql(dot)org
Subject: Default values?
Date: 2001-02-17 17:30:18
Message-ID: 20010217173017.A2363@usb.cafod.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Max Rudensky 2001-02-17 17:49:16 OIDs in triggers
Previous Message Bruce Richardson 2001-02-17 17:23:09 Function reference