using queries as default value?

From: Don Patou <pknoob(at)noos(dot)fr>
To: pgsql-novice(at)postgresql(dot)org
Subject: using queries as default value?
Date: 2003-05-30 22:04:22
Message-ID: 200305310004.22609.pknoob@noos.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

is it possible to have a query as a column default value. I have a statistic
table and I would like one of its column to do like "select count(colx) from
anothertable".
What's the best way to do this?

thanx in advance

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Josh Berkus 2003-05-30 22:24:21 Re: using queries as default value?
Previous Message Herbie 2003-05-30 22:03:30 nOOB Question..