How to import CSV file data into a PostgreSQL table?

前端 未结 19 2659
再見小時候
再見小時候 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:15

    Create table and have required columns that are used for creating table in csv file.

    1. Open postgres and right click on target table which you want to load & select import and Update the following steps in file options section

    2. Now browse your file in filename

    3. Select csv in format

    4. Encoding as ISO_8859_5

    Now goto Misc. options and check header and click on import.

提交回复
热议问题