Re: date format - Mailing list pgsql-general

From Laurenz Albe
Subject Re: date format
Date
Msg-id c958cd0048495e2784cd0998b252a9d324a19aa5.camel@cybertec.at
Whole thread Raw
In response to Re: date format  (Marc Millas <marc.millas@mokadb.com>)
List pgsql-general
On Wed, 2023-06-14 at 20:02 +0200, Marc Millas wrote:
> So, creating a foreign table with varchar type, and then doing the insert as select with the appropriate format..
clear.
> somewhat sad as it was a one step process with the former oracle db we get rid off.

It can be a one-step process, if you create a view on the table that uses
to_date() to convert the column to a "date".

Yours,
Laurenz Albe



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: date format
Next
From: Ruslan Zakirov
Date:
Subject: Re: Reproducing incorrect order with order by in a subquery