![]() ![]() Open a connection − Requires using the DriverManager.getConnection() method to create a Connection object, which represents a physical connection with the database server. Most often, using import java.sql.* will suffice. Import the packages − Requires that you include the packages containing the JDBC classes needed for database programming. ![]() The following steps are required to create a new Database using JDBC application − Your MySQL or whatever database is up and running. To execute the following example, you need to replace the username and password with your actual user name and password. You should have admin privilege to create a database in the given schema. Before executing the following example, make sure you have the following in place − This tutorial provides an example on how to create a Database using JDBC application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |