mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-09 18:10:48 +00:00
e312229344
* Remove Berlin meetup link * Do not block browser while single page docs content loads * Restore sidebar scroll tracking feature * Temporary hide footer in single page docs mode so it does not jump around * Swap sidebars in single page docs mode * fix lost anchor in link * Explicitly fail if there are errors during docs build
869 B
869 B
file
file(path, format, structure)
- возвращает таблицу со столбцами, указанными в structure, созданную из файла path типа format.
path - относительный путь до файла от user_files_path.
format - формат файла.
structure - структура таблицы в форме 'UserID UInt64, URL String'. Определяет имена и типы столбцов.
Пример
-- получение первых 10 строк таблицы, состоящей из трёх колонок типа UInt32 из CSV файла
SELECT * FROM file('test.csv', 'CSV', 'column1 UInt32, column2 UInt32, column3 UInt32') LIMIT 10