A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Can I use JDBC to execute database command?
Joined: Nov 07, 2002
Aug 23, 2005 09:33:00
Can someone please tell me if I use
to execute database (non-query) command? For example, in MySQL, it has command like 'SHOW MASTER STATUS', Can I execute that thru JDBC? If yes, can you please point me to an example?
Thank you for any help.
Joined: May 26, 2003
Aug 23, 2005 17:43:00
JDBC is used to execute queries (or DDL instructions.) You could use Runtime.exec() to call a shell script containing the database instruction.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
subject: Can I use JDBC to execute database command?
DB2 JDBC connection
creating a new user profile dynamically for mysql?
Accessing jar file in classpath
calling servlet and PHP from oracle
executing an sql through java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013