[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-26。"],[],[],null,["# JDBC drivers\n\nThis page describes the JDBC drivers that Spanner supports for\nGoogleSQL-dialect databases and PostgreSQL-dialect databases. You can use these drivers to connect to\nSpanner from Java applications. Spanner supports the\nfollowing JDBC drivers:\n\n- The Spanner JDBC driver, which is an open-source JDBC driver that is written, provided, and supported by Google, similar to the [Cloud Client Libraries](/spanner/docs/reference/libraries). This is the recommended JDBC driver for Spanner, especially for the GoogleSQL dialect. You can also use it to connect to PostgreSQL-dialect databases.\n- The PostgreSQL JDBC driver in combination with PGAdapter. This driver only supports PostgreSQL-dialect databases.\n\n| **Note:** Spanner previously supported the Simba JDBC driver. If you already use the Simba driver with Spanner, you can continue to do so.\n\nFor information about the Spanner JDBC driver, see [Spanner JDBC driver FAQ](/spanner/docs/open-source-jdbc) and\n[How to use the Spanner JDBC driver](/spanner/docs/use-oss-jdbc).\n\nFor information about the PostgreSQL JDBC driver, see\n[Connect JDBC to a PostgreSQL-dialect database](/spanner/docs/pg-jdbc-connect)."]]