ClickHouse/docs/fr/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

30 lines
865 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
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 dexé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-->