mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
938 B
938 B
sidebar_position | sidebar_label |
---|---|
43 | Files |
Functions for Working with Files
file
Reads file as a String. The file content is not parsed, so any information is read as one string and placed into the specified column.
Syntax
file(path)
Arguments
path
— The relative path to the file from user_files_path. Path to file support following wildcards:*
,?
,{abc,def}
and{N..M}
whereN
,M
— numbers,'abc', 'def'
— strings.
Example
Inserting data from files a.txt and b.txt into a table as strings:
Query:
INSERT INTO table SELECT file('a.txt'), file('b.txt');
See Also