default value based on select

From: Pedro Doria Meunier <pdoria(at)netmadeira(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: default value based on select
Date: 2008-04-05 09:56:00
Message-ID: 200804051056.10433.pdoria@netmadeira.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

Is it possible to have a table's column default value set to some form of
select?

e.g. picking another table's value for a given SELECT ... WHERE ...

Already thankful for any insight,
--
Pedro Doria Meunier
Ips. da Olaria, Edf. Jardins do Garajau, 4, r/c Y
9125-162 Caniço
Madeira - Portugal
--------------------------------------------------
Skype : pdoriam
Mobile: +351961720188

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2008-04-05 10:14:45 Re: default value based on select
Previous Message Gregory Stark 2008-04-05 09:43:47 Re: modules