⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 databasedisconnection.java~1~

📁 本系统图书馆管理系统
💻 JAVA~1~
字号:
package databaseoperate;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class DatabaseDIsconnection {
    try {
              if(statement != null) {
                  statement.close();                                  // 关闭Statement接口实例
              }
              if(connection != null) {
                  connection.close();                                 // 关闭Connection接口实例
              }
          }
          catch (SQLException ex)  {
              System.out.println("\nERROR:----- SQLException -----\n");
              System.out.println("Message:   " + ex.getMessage( ));
              System.out.println("SQLState:  " + ex.getSQLState());
              System.out.println("ErrorCode: " + ex.getErrorCode());
          }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -