Re: date format

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Marc Millas <marc(dot)millas(at)mokadb(dot)com>, Ron <ronljohnsonjr(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: date format
Date: 2023-06-14 18:53:36
Message-ID: 3e806c01-a445-79a9-62b7-80a29a1b99eb@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 6/14/23 11:23, Marc Millas wrote:
>
>

Sort of like?:

https://pgloader.readthedocs.io/en/latest/ref/csv.html

date format

column-name [date format 'YYYY-MM-DD HH24-MI-SS.US']

>
>
> In Postgresql, could you write a simple anonymous procedure that
> reads the file_fdw table records, does the conversion and then
> inserts into the destination table?
> -> one sql line insert as select  using the to_date() function with
> appropriate format.
>
> --
> Born in Arizona, moved to Babylonia.
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2023-06-14 20:44:36 Re: date format
Previous Message Marc Millas 2023-06-14 18:24:59 Re: date format