Re: What is the syntax for setting a default date in PostgreSQL?

From: Alban Hertroys <alban(at)magproductions(dot)nl>
To: Frank Church <pgsql(at)adontendev(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: What is the syntax for setting a default date in PostgreSQL?
Date: 2006-02-20 11:13:05
Message-ID: 43F9A441.6030202@magproductions.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Frank Church wrote:
> This issue always stumps me. I need to set the default date for a column in
> postgres. A value for today, today + x days, now (timestamp), now + x amount of
> days.

CURRENT_DATE, CURRENT_DATE + x, now(), now() + 'x days'::interval are a
few options.

--
Alban Hertroys
alban(at)magproductions(dot)nl

magproductions b.v.

T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
7500 AK Enschede

// Integrate Your World //

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chad 2006-02-20 13:08:33 Re: How do I use the backend APIs
Previous Message Frank Church 2006-02-20 10:59:28 What is the syntax for setting a default date in PostgreSQL?