Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating tables

Status
Not open for further replies.

gokuzboy

Programmer
Joined
Mar 24, 2003
Messages
1
Location
CA
Hi, I have a question about inputing data into mysql database table.
Here is my problem. I can insert data into mysql on command prompt by doing something like this: source myfile.sql

however I want to do this in java code. is there any possible way of doing this.

Ex public getData( ){
....
//run some sort of source myfile.sql here
}

Thanks,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top