clickhouse-jdbc-bridge 包含 Experimental 代码,且已不再受支持。它可能存在可靠性问题和安全漏洞,请自行承担使用风险。
ClickHouse 建议使用其内置的表函数,在临时查询场景 (如 Postgres、MySQL、MongoDB 等) 中可作为更好的替代方案。
创建表
-
datasource— 外部 DBMS 的 URI 或名称。 URI 格式:jdbc:<driver_name>://<host_name>:<port>/?user=<username>&password=<password>。 MySQL 示例:jdbc:mysql://localhost:3306/?user=root&password=root。 -
external_database— 外部 DBMS 中的数据库名称,或者显式定义的表 schema (见示例) 。 -
external_table— 外部数据库中的表名,或类似select * from table1 where column1=1的 SELECT 查询。 - 这些参数也可以通过命名集合传递。