How to import CSV file data into a PostgreSQL table?

前端 未结 19 2681
再見小時候
再見小時候 2020-11-22 02:14

How can I write a stored procedure that imports data from a CSV file and populates the table?

19条回答
  •  滥情空心
    2020-11-22 03:00

    IMHO, the most convenient way is to follow "Import CSV data into postgresql, the comfortable way ;-)", using csvsql from csvkit, which is a python package installable via pip.

提交回复
热议问题