![]() This method takes a string containing a URL. This is done by using the method DriverManager.getConnection() method. ![]() To get/create a JDBC connection in java, firstly we need to establish a connection with the database. An application may have one or more connections with a single database or many connections with the different databases also. When we connect to a database by using a getConnection() method, we create a Connection object, which represents the connection to the database. We will see the same codes to get a JDBC connection with different database software.Ī Connection object represents a connection with a database. In this post, we will discuss how to create or get a JDBC connection. To develop a JDBC application, the most important part is to get connection.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |