Mega Code Archive

 
Categories / Java Tutorial / Database
 

You can use the connect command of ij to establish a connection with a database

The connect command loads a JDBC driver to establish the connection. The command to establish a connection with a sample database is: connect 'jdbc:derby:sample'; You can also use the connect command to create a new database and establish a connection with the database. connect 'jdbc:derby:test;create=true';