简体   繁体   中英

How to import data from Excel file into PostgreSQL?

I have checked some links how to load data from excel file into PostgreSQL table. There are solutions as:

  • Save excel to .CSV file and use COPY command.
  • Use Python script to read and insert data to Postgresql.

Because of the format of excel file, I can't save it as CSV file. Do we have any built-in functions PostgreSQL provided to read data from excel file?

我认为没有内置的东西可以读取 xlsx 文件,也许您应该修改您的案例以使用任一解决方案。

In Excel, you could make an ODBC connection with PostgreSQL, then send SQL commands to insert data from Excel to PostgreSQL.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM