mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-28 12:40:49 +00:00
324fd98de6
* Updating of english translation. * Some bugs are fixed.
726 B
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