[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-05 (世界標準時間)。"],[],[],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)."]]