Re: [SQL] external environment variable

From: José Soares <jose(at)sferacarta(dot)com>
To: Randal Flagg <flagg_randal(at)hotmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] external environment variable
Date: 1999-04-14 13:40:33
Message-ID: 37149AD1.B1234DBB@sferacarta.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Randal Flagg ha scritto:

> Hi!!,
> I've a little problem. I've installed Apache JServ 1.03b and it
> works very good, I've also installed PostreSQL 6.4 and I set the
> environment variable PGDATESTYLE in the /etc/profile file. When I use
> PostgreSQL directly, date's fields are shown according to the
> PGDATESTYLE but, when I query a table across the Web using a Servlet
> PostreSQL ignore PGDATESTYLE and use it's default.
>

use command set
Description: set run-time environment
Syntax:
SET DateStyle TO
'ISO'|'SQL'|'Postgres'|'European'|'US'|'NonEuropean'

example:
set datestyle to 'ISO';
José

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 1999-04-15 14:54:26 Re: [SQL] external environment variable
Previous Message Olivier BLONDEAU 1999-04-14 12:52:38 Re: [SQL] inet problem