close

擷取

 

package test;

import java.sql.Connection;

import java.sql.DriverManager;

public class test1

{ 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");

}

}  

arrow
arrow
    全站熱搜

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