package test;

import java.sql.Connection;
import java.sql.DriverManager;

public class test01 {

public static void main(String[] args) {
// TODO Auto-generated method stub
Connection c = null;
try {
Class.forName("org.sqlite.JDBC");
c = DriverManager.getConnection("jdbc:sqlite:test.db");
} catch (Exception e) {
System.err.println(e.getClass().getName() + ": " + e.getMessage());
System.exit(0);
}
System.out.println("Opened database successfully");
}
}

------

Image 1  

 

arrow
arrow
    全站熱搜

    zssz5101 發表在 痞客邦 留言(0) 人氣()