2020-03-30 08:25:29 +00:00
|
|
|
---
|
|
|
|
machine_translated: true
|
2020-05-15 04:34:54 +00:00
|
|
|
machine_translated_rev: 72537a2d527c63c07aa5d2361a8829f3895cf2bd
|
2020-04-04 09:15:31 +00:00
|
|
|
toc_priority: 41
|
|
|
|
toc_title: URL
|
2020-03-30 08:25:29 +00:00
|
|
|
---
|
|
|
|
|
2020-03-21 04:11:51 +00:00
|
|
|
# URL {#url}
|
|
|
|
|
|
|
|
`url(URL, format, structure)` - devuelve una tabla creada a partir del `URL` con dado
|
|
|
|
`format` y `structure`.
|
|
|
|
|
|
|
|
URL - Dirección de servidor HTTP o HTTPS, que puede aceptar `GET` y/o `POST` peticiones.
|
|
|
|
|
2020-04-04 09:15:31 +00:00
|
|
|
formato - [formato](../../interfaces/formats.md#formats) de los datos.
|
2020-03-21 04:11:51 +00:00
|
|
|
|
|
|
|
estructura - estructura de la tabla en `'UserID UInt64, Name String'` formato. Determina los nombres y tipos de columna.
|
|
|
|
|
|
|
|
**Ejemplo**
|
|
|
|
|
|
|
|
``` sql
|
|
|
|
-- getting the first 3 lines of a table that contains columns of String and UInt32 type from HTTP-server which answers in CSV format.
|
|
|
|
SELECT * FROM url('http://127.0.0.1:12345/', CSV, 'column1 String, column2 UInt32') LIMIT 3
|
|
|
|
```
|
|
|
|
|
2020-04-04 09:15:31 +00:00
|
|
|
[Artículo Original](https://clickhouse.tech/docs/en/query_language/table_functions/url/) <!--hide-->
|