Re: ALERT column - Mailing list pgsql-sql

From Richard Huxton
Subject Re: ALERT column
Date
Msg-id 200304291231.21951.dev@archonet.com
Whole thread Raw
In response to ALERT column  (Rado Petrik <r.p@szm.sk>)
List 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



pgsql-sql by date:

Previous
From: "Victor Yegorov"
Date:
Subject: Re: help query
Next
From: "SZŰCS Gábor"
Date:
Subject: Query Plan far worse in 7.3.2 than 7.2.1