0

有谁知道 SQuirreL SQL 客户端是否与 QODBC 兼容?如果没有,是否有 SQuirreL 的插件可以启用?

任何见解都会受到赞赏,因为我从未使用过。

4

2 回答 2

0

使用 Java ODBC 桥产品的 QODBC 驱动程序示例

注意:以下是我们一位满意的客户的一些示例代码:

// QuickBooks variables
Connection con =null;
Statement stmt = null;
ResultSet rs = null;

// parameters for QuickBooks database
static final String url = "jdbc:odbc:quickbooks";
// "quickbooks" is a System DSN that is the name of the QODBC driver
// On WindowsXP it can be set up at Control Panel > Administrative Tools >
// Data Sources (ODBC)

static final String driver = "sun.jdbc.odbc.JdbcOdbcDriver";

public static void main(String[] args) throws Exception {
InsertCustomers t = new InsertCustomers();
}

public InsertCustomers() throws Exception {
try {
Class.forName(driver);
con = DriverManager.getConnection(url);
stmt = con.createStatement();
System.out.println("Querying QB customer table");
rs = stmt.executeQuery("SELECT * FROM customer");
于 2014-02-07T06:43:12.620 回答