ClickHouse/docs/en/query_language/table_functions/url.md
BayoNet 324fd98de6 Update of english documentation (#2918)
* Updating of english translation.

* Some bugs are fixed.
2018-09-04 14:18:59 +03:00

726 B

url

url(URL, format, structure) — Returns a table with the columns specified in structure, created from data located at URL in the specified format.

URL — URL where the server accepts GET and/or POST requests over HTTP or HTTPS.

format — The data format.

structure — The structure of the table in the format 'UserID UInt64, Name String'. Defines the column names and types.

Example

-- Get 3 rows of a table consisting of two columns of type String and UInt32 from the server, which returns the data in CSV format
SELECT * FROM url('http://127.0.0.1:12345/', CSV, 'column1 String, column2 UInt32') LIMIT 3