File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes mysql_query() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "mysql_query()" Watch "mysql_query()" New topic


Ken Rubin
Ranch Hand

Joined: Mar 08, 2004
Posts: 66

Can I call mysql_query() construct from a java program or something like it? (I want to use a LOAD INFILE ... from a text file to database and run it from java).


Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3753

You mean bulk load a script? Sure, Statement.executeQuery() can support multiple calls in some databases. Granted, you're not really doing much JDBC in this manner.

[OCA 8 Book] [Blog]
I agree. Here's the link:
subject: mysql_query()
It's not a secret anymore!