Re: ALERT column

From: Richard Huxton <dev(at)archonet(dot)com>
To: Rado Petrik <r(dot)p(at)szm(dot)sk>, PostgreSQL-mailinglist <pgsql-sql(at)postgresql(dot)org>
Subject: Re: ALERT column
Date: 2003-04-29 11:31:21
Message-ID: 200304291231.21951.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tuesday 29 Apr 2003 10:14 am, Rado Petrik wrote:
> Hi ,
>
>
> I have column dt_created type "timestamptz"
>
> and I need set default value "now()" in exist database. No new !!
>
> This example is not good .
>
> ALTER TABLE user ALERT COLUMN dt_created SET DEFAULT=now();

Correct syntax is:
ALTER TABLE user ALTER COLUMN dt_created SET DEFAULT now();

See the SQL Commands reference chapter in the manual for full details.

--
Richard Huxton

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message SZŰCS Gábor 2003-04-29 13:01:21 Query Plan far worse in 7.3.2 than 7.2.1
Previous Message Victor Yegorov 2003-04-29 10:44:21 Re: help query