pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jean-Christophe Roux <jcxxr@yahoo.com>
To: pgsql-php@postgresql.org
Subject: get column default value
Date: Mon, 13 Nov 2006 06:49:14 -0800 (PST)
Message-ID: <20061113144914.83394.qmail@web35307.mail.mud.yahoo.com> (raw)

Hello,
How can I get the default value for a column?
To change the default value, something like
ALTER TABLE dummy ALTER COLUMN value SET DEFAULT -12;
would do the job, but how could I query the value?


Thanks in advance





view thread (9+ messages)  latest in thread

Message-ID: <20061113144914.83394.qmail@web35307.mail.mud.yahoo.com>
Permalink:  ../20061113144914.83394.qmail@web35307.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/20061113144914.83394.qmail@web35307.mail.mud.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: jcxxr@yahoo.com
  Subject: Re: get column default value
  In-Reply-To: <20061113144914.83394.qmail@web35307.mail.mud.yahoo.com>
  References: <20061113144914.83394.qmail@web35307.mail.mud.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox