• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDBC and TextFiles

 
vishal sodani
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have 4 textfiles,each having 5 columns delimited by space(eg.-- bill clinton male 34 married).Now,I want to query these files using SQL statements .Can I use JDBC to do so?
thanks
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it would be much faster and stable(no dsn setup, portablility issues, etc) using file IO - random access files.
http://java.sun.com/docs/books/tutorial/essential/io/rafIO.html
Jamie
[ February 05, 2002: Message edited by: Jamie Robertson ]
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!