2020-03-30 08:25:29 +00:00
|
|
|
---
|
|
|
|
machine_translated: true
|
2020-04-04 09:15:31 +00:00
|
|
|
machine_translated_rev: 3e185d24c9fe772c7cf03d5475247fb829a21dfa
|
|
|
|
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-->
|