ClickHouse/docs/zh/sql-reference/table-functions/jdbc.md
Ivan Blinkov d91c97d15d
[docs] replace underscores with hyphens (#10606)
* Replace underscores with hyphens

* remove temporary code

* fix style check

* fix collapse
2020-04-30 21:19:18 +03:00

783 B
Raw Blame History

machine_translated machine_translated_rev toc_priority toc_title
true b111334d66 43 jdbc

jdbc

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

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

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

原始文章