pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Rado Petrik <r.p@szm.sk>
To: PostgreSQL-mailinglist <pgsql-sql@postgresql.org>
Subject: Re: ALERT column
Date: Tue, 29 Apr 2003 12:31:21 +0100
Message-ID: <200304291231.21951.dev@archonet.com> (raw)
In-Reply-To: <1051607665.777.12.camel@caj>
References: <1051607665.777.12.camel@caj>

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




view thread (2+ messages)

Message-ID: <200304291231.21951.dev@archonet.com>
Permalink:  ../200304291231.21951.dev@archonet.com/
Also on:    postgresql.org/message-id/200304291231.21951.dev@archonet.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, r.p@szm.sk
  Subject: Re: ALERT column
  In-Reply-To: <200304291231.21951.dev@archonet.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