Execute SQL on CSV files via JDBC

前端 未结 7 1744
后悔当初
后悔当初 2020-12-28 19:46

I need to apply an SQL query to CSV files (comma-separated text files). My SQL is predefined from another tool, and is not eligible to change. It may contain embedded select

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-28 20:07

    If your SQL is predefined and cannot be changed your best option is to load your CSV into a database and run queries against it.

    Apache Derby is a viable option, so are MySQL, which even has a CSV storage engine or PostgreSQL.

    Does your SQL use any proprietary functions / extensions? If so, that may limit your choices.

提交回复
热议问题