2020-04-15 13:56:49 +00:00
|
|
|
|
---
|
|
|
|
|
machine_translated: true
|
2020-05-15 04:34:54 +00:00
|
|
|
|
machine_translated_rev: 72537a2d527c63c07aa5d2361a8829f3895cf2bd
|
2020-04-15 13:56:49 +00:00
|
|
|
|
toc_priority: 43
|
|
|
|
|
toc_title: jdbc
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# jdbc {#table-function-jdbc}
|
|
|
|
|
|
|
|
|
|
`jdbc(jdbc_connection_uri, schema, table)` - JDBC sürücüsü ile bağlı döner tablo.
|
|
|
|
|
|
|
|
|
|
Bu tablo işlevi ayrı gerektirir `clickhouse-jdbc-bridge` program çalıştırılacak.
|
|
|
|
|
Bu (sorgulanan uzak tablonun DDL dayalı) null türleri destekler.
|
|
|
|
|
|
|
|
|
|
**Örnekler**
|
|
|
|
|
|
|
|
|
|
``` 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')
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
[Orijinal makale](https://clickhouse.tech/docs/en/query_language/table_functions/jdbc/) <!--hide-->
|