SQuirreL SQL Client是否与QODBC兼容?

时间:2014-02-06 08:07:17

标签: mysql jdbc odbc jdbc-odbc squirrel-sql

有人知道SQuirreL SQL Client是否与QODBC兼容?如果不是,SQuirreL有一个插件可以启用吗?

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

2 个答案:

答案 0 :(得分:0)

答案 1 :(得分:0)

使用Java ODBC Bridge产品的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");
相关问题