pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ALERT column
2+ messages / 2 participants
[nested] [flat]

* ALERT column
@ 2003-04-29 09:14  Rado Petrik <r.p@szm.sk>
  0 siblings, 1 reply; 2+ messages in thread

From: Rado Petrik @ 2003-04-29 09:14 UTC (permalink / raw)
  To: pgsql-sql


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();

Thanks.

Rado.




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: ALERT column
@ 2003-04-29 11:31  Richard Huxton <dev@archonet.com>
  parent: Rado Petrik <r.p@szm.sk>
  0 siblings, 0 replies; 2+ messages in thread

From: Richard Huxton @ 2003-04-29 11:31 UTC (permalink / raw)
  To: Rado Petrik <r.p@szm.sk>; 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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-04-29 11:31 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-04-29 09:14 ALERT column Rado Petrik <r.p@szm.sk>
2003-04-29 11:31 ` Richard Huxton <dev@archonet.com>

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