Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 编程 » SQL Anywhere 数据访问 API » SQL Anywhere JDBC 驱动程序 » 从 JDBC 客户端应用程序连接

 

从服务器端的 JDBC 类建立连接

JDBC 中的 SQL 语句是使用 Connection 对象的 createStatement 方法构建的。即使是在服务器内部运行的类,也需要建立连接以创建 Connection 对象。

从服务器端的 JDBC 类建立连接比建立外部连接更为直接。由于用户已经连接到数据库,所以类只使用当前连接。


服务器端连接的示例代码
服务器端连接示例的不同之处
运行服务器端连接示例