Hi all,
I've read on Sun's java site that with JDBC 3.0 is actually possible
to use plain text file (such as CSV) as table and make my queries on
that.
"JDBC technology is an API that lets you access virtually any tabular
data source from the Java programming language. It provides cross-DBMS
connectivity to a wide range of SQL databases, and now, with the new
JDBC API, it also provides access to other tabular data sources, such
as spreadsheets or flat files."
How can I do this? I can't find any example for getting the
connection. I don't want to use third party drivers.... if not
absolutely necessary.
can you help me??
thanks
Duke
Thomas Kellerer - 13 Nov 2003 18:22 GMT
JDBC as such is just an interface definition. What you need is a JDBC
*driver* which is capable of handling text files. I recall seeing on on
sourceforge. HSQLB (hsqldb.sourceforge.net) tables can be mapped to
external text files as well
Additionally, if you are working on Windows, you can setup an ODBC data
source which connects to your text files. AFAIK the text file driver is
included with the windows installation.
Thomas
Thomas
Duke schrieb:
> Hi all,
>
[quoted text clipped - 17 lines]
>
> Duke