i want to create the database, like what we use the query in Mysql as "Create data base XXXXX" like that is their any way to run this query with out having any database in Mysql.
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32833
4
posted
0
As far as I know you can pass "create database if not exists chirus_database" as a statement with the java.sql.Statement#execute or java.sql.Statement#executeUpdate methods.
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32833
4
posted
0
You might need to specify your Statement as updatable type when you create it from the Connection.