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

📄 conntest17.java

📁 b树实现源码,linux和unix下运行,速度快,极好用
💻 JAVA
字号:
//Close the connection and they call commit(). It should fail.
//Author: XieLiang
import java.sql.*;
public class ConnTest17 
{
    public static void main(String[] args) 
    {
       try
       {
           Class.forName("csql.jdbc.JdbcSqlDriver");
           Connection con = DriverManager.getConnection("jdbc:csql", "root", "manager");
	   if ( con == null )
		   System.exit(1);
           con.close();
	   con.commit();
           System.exit(1);
        }catch(Exception e) {
            System.out.println(e.getMessage());
            e.getStackTrace();
            if (e.getMessage().equals("Invalid state")) System.exit(0);
            else System.exit(1);

       }
    }
}

⌨️ 快捷键说明

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