ClickHouse/docs/fr/sql_reference/table_functions/url.md
2020-04-04 12:15:31 +03:00

886 B

machine_translated machine_translated_rev toc_priority toc_title
true f865c9653f 41 URL

URL

url(URL, format, structure) - retourne une table créée à partir du URL avec le format et structure.

URL-adresse du serveur HTTP ou HTTPS, qui peut accepter GET et/ou POST demande.

format - format des données.

structure - structure de table dans 'UserID UInt64, Name String' format. Détermine les noms et les types de colonnes.

Exemple

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

Article Original