Re: datestyle setting

From: Richard Huxton <dev(at)archonet(dot)com>
To: Kenneth Gonsalves <lawgon(at)thenilgiris(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL SQL <pgsql-sql(at)postgresql(dot)org>
Subject: Re: datestyle setting
Date: 2005-03-09 08:10:04
Message-ID: 422EAF5C.1070305@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Kenneth Gonsalves wrote:
> On Wednesday 09 Mar 2005 11:57 am, Tom Lane wrote:
>>
>>If it's a reasonably recent version of PG, either ALTER DATABASE
>>SET or ALTER USER SET might serve.
>
>
> postgresql 7.4. when i type:
>
> alter database set datestyle to 'European'
>
> i get 'syntax error at or near "datestyle" at character 20'

I keep making this mistake, you need to include the database name:
ALTER DATABASE my_db_name SET datestyle TO 'ISO';

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Fatih Cerit 2005-03-09 08:58:05 interval +variable
Previous Message Kenneth Gonsalves 2005-03-09 07:21:25 Re: datestyle setting