If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > read sql from text file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-06, 14:46
anamikasehgal anamikasehgal is offline
Registered User
 
Join Date: Nov 2006
Posts: 13
read sql from text file

I have written a sql query in a text file name query.txt. Query is select author,title from compinfo where price >=100;. The database is stored in mysql and i have connected to mysql using jdbc. Could neone provide a code in java that would read the file and extract table name, attribute etc from the text file. Please help immediately since it is a project...
Reply With Quote
  #2 (permalink)  
Old 12-11-06, 02:20
dimis2500 dimis2500 is offline
Registered User
 
Join Date: Jan 2005
Posts: 362
IO classes

You need to use input/ouput classes.
A tutorial
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On