Execute SQL on CSV files via JDBC

前端 未结 7 1691
后悔当初
后悔当初 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:26

    If you are wanting to treat csv files as databases from within a Java program, you should look at the h2 database engine. It has really nice support for reading/writing CSV files and working with in-memory databases. It's a successor to hsql, faster and with added features. You can read about the csv support in the h2 tutorial.

    0 讨论(0)
提交回复
热议问题