Version: 7.0.0

Closing a Connection ​

After completing data operations using a database connection, the database connection needs to be closed.

To close a database connection, you can directly call its close method. For example:

java
Connection conn = DriverManager.getConnection("url","user","password");
conn.close();