Help wanted!

The following content of this documentation page has been machine-translated. But unlike other websites, it is not done on the fly. This translated text lives on GitHub repository alongside main ClickHouse codebase and waits for fellow native speakers to make it more human-readable. You can also use the original English version as a reference.

Help ClickHouse documentation by editing this page

jdbc

jdbc(jdbc_connection_uri, schema, table) -返回通过JDBC驱动程序连接的表。

此表函数需要单独的 clickhouse-jdbc-bridge 程序正在运行。
它支持可空类型(基于查询的远程表的DDL)。

  1. SELECT * FROM jdbc('jdbc:mysql://localhost:3306/?user=root&password=root', 'schema', 'table')
  1. SELECT * FROM jdbc('mysql://localhost:3306/?user=root&password=root', 'schema', 'table')
  1. SELECT * FROM jdbc('datasource://mysql-local', 'schema', 'table')

原始文章