-1
如何連接NetBeans IDE 8.2
到SQLite (3.16.1)
?將NetBeans連接到SQLite
我與Java
嘗試過,但我需要編寫的C
。 我以爲使得在Java
連接,但隨後在不同的項目可以幫助C
編碼 ,但沒有奏效。
如何連接NetBeans IDE 8.2
到SQLite (3.16.1)
?將NetBeans連接到SQLite
我與Java
嘗試過,但我需要編寫的C
。 我以爲使得在Java
連接,但隨後在不同的項目可以幫助C
編碼 ,但沒有奏效。
如果你想在Java代碼:
import java.sql.*;
public class SQLiteJDBC
{
public static void main(String args[])
{
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");
}
}
只寫調用適當的SQLite的功能代碼。究竟是什麼問題? –