How to import CSV file data into a PostgreSQL table?

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

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

19条回答
  •  Happy的楠姐
    2020-11-22 03:08

    As Paul mentioned, import works in pgAdmin:

    right click on table -> import

    select local file, format and coding

    here is a german pgAdmin GUI screenshot:

    similar thing you can do with DbVisualizer (I have a license, not sure about free version)

    right click on a table -> Import Table Data...

提交回复
热议问题