Closing a Connection

After you complete required data operations in the database, close the database connection.

Call the close method to close the connection, for example, Connection conn = DriverManager.getConnection(“url”,“user”,“password”); conn.close();

Feedback
编组 3备份
    openGauss 2024-05-05 00:44:49
    cancel