mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 14:11:58 +00:00
d91c97d15d
* Replace underscores with hyphens * remove temporary code * fix style check * fix collapse
30 lines
865 B
Markdown
30 lines
865 B
Markdown
---
|
||
machine_translated: true
|
||
machine_translated_rev: f865c9653f9df092694258e0ccdd733c339112f5
|
||
toc_priority: 43
|
||
toc_title: jdbc
|
||
---
|
||
|
||
# jdbc {#table-function-jdbc}
|
||
|
||
`jdbc(jdbc_connection_uri, schema, table)` - retourne la table qui est connectée via le pilote JDBC.
|
||
|
||
Ce tableau fonction nécessite séparé `clickhouse-jdbc-bridge` programme en cours d’exécution.
|
||
Il prend en charge les types Nullable (basé sur DDL de la table distante qui est interrogée).
|
||
|
||
**Exemple**
|
||
|
||
``` sql
|
||
SELECT * FROM jdbc('jdbc:mysql://localhost:3306/?user=root&password=root', 'schema', 'table')
|
||
```
|
||
|
||
``` sql
|
||
SELECT * FROM jdbc('mysql://localhost:3306/?user=root&password=root', 'schema', 'table')
|
||
```
|
||
|
||
``` sql
|
||
SELECT * FROM jdbc('datasource://mysql-local', 'schema', 'table')
|
||
```
|
||
|
||
[Article Original](https://clickhouse.tech/docs/en/query_language/table_functions/jdbc/) <!--hide-->
|