就是在该方法调用中,我们获得然后再关闭数据库连接。
It is in this method call that the database connection is obtained and subsequently closed.
最后,我们将检索sql语句的结果并关闭数据库连接。
Finally, we retrieve the results of our SQL statement and close the connection to the database.
当应用程序关闭时,会关闭数据库连接、保存当前状态,等等。
When the application shuts down, it can close database connections, save the current state, and so on.
应用推荐