Re: ECPG - Timestamp to ascii Conversion PG version 7.4

From: "Dann Corbit" <DCorbit(at)connx(dot)com>
To: "Don Laurine" <donald(dot)laurine(at)noaa(dot)gov>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: ECPG - Timestamp to ascii Conversion PG version 7.4
Date: 2005-05-05 18:21:17
Message-ID: D425483C2C5C9F49B5B7A41F89441547055B57@postal.corporate.connx.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

template1=# \d bar
Table "public.bar"
Column | Type | Modifiers
----------+-----------------------------+-----------
happened | timestamp without time zone |

template1=# select happened::varchar from bar;
happened
-------------------------
2005-05-05 11:19:38.066
2005-05-05 11:19:40.082
2005-05-05 11:19:41.097
(3 rows)

> -----Original Message-----
> From: pgsql-general-owner(at)postgresql(dot)org [mailto:pgsql-general-
> owner(at)postgresql(dot)org] On Behalf Of Don Laurine
> Sent: Thursday, May 05, 2005 11:07 AM
> To: pgsql-general(at)postgresql(dot)org
> Subject: [GENERAL] ECPG - Timestamp to ascii Conversion PG version 7.4
>
> We are currently transitioning to Postgresql 7.4 from Informix. IN
ECPG,
> is there a Postgresql function which will convert the timestamp data
> type to a string equivalent. INFORMIX has the dtcvasc function but I
> prefer not to use the -C compatibility option. I rather have a
complete
> port and get away from INFORMIX.
>
>
> --
> Don Laurine
> NOAA, Northwest River Forecast Center
> voice: (503) 326-7291 (ext. 323)
>
> ---------------------------(end of
broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to
majordomo(at)postgresql(dot)org)

Browse pgsql-general by date

  From Date Subject
Next Message John DeSoi 2005-05-05 18:33:39 Re: Inserting a record into another table ... inside a
Previous Message Jeff - 2005-05-05 18:16:11 Re: Slony v. DBMirror