INTO OUTFILE Clause
Add the INTO OUTFILE filename
clause (where filename is a string literal) to SELECT query
to redirect its output to the specified file on the client-side.
Implementation Details
- This functionality is available in the command-line client and clickhouse-local. Thus a query sent via HTTP interface will fail.
- The query will fail if a file with the same filename already exists.
- The default output format is
TabSeparated
(like in the command-line client batch mode).
当前内容版权归 ClickHouse 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ClickHouse .