Re: Import csv to temp table - Mailing list pgsql-general

From Ron Johnson
Subject Re: Import csv to temp table
Date
Msg-id CANzqJaDck5zK3E6DXzvjVJvoKvHnY9b__QwPy4oLoCVGer31ow@mail.gmail.com
Whole thread Raw
In response to Import csv to temp table  (arun chirappurath <arunsnmimt@gmail.com>)
List pgsql-general
On Tue, Jan 2, 2024 at 7:02 AM arun chirappurath <arunsnmimt@gmail.com> wrote:
Dear All,

Do we have any scripts that create a temp table with column names from the first row of csv files?

How would you determine the data type?
 
If you assume TEXT for all of them, then it's relatively simple to write bash which does it.

pgsql-general by date:

Previous
From: Arbol One
Date:
Subject: Testing - Please ignore/delete this message
Next
From: Hilary Cotter
Date:
Subject: Re: Testing - Please ignore/delete this message