当前位置:网站首页>ClickHouse 复制粘贴多行sql语句报错
ClickHouse 复制粘贴多行sql语句报错
2022-07-05 20:43:00 【Hehuyi_In】
一、 问题现象
遇到一个很无语的问题,复制一个多行insert命令的时候kuakuakua报了一大堆错,语句类似
insert into tmp0701
(
id,
name,
age,
...
)
select
id,
name,
age,
...
from tmp0701;
二、 解决方法
clickhouse-client -m
以分号;结束命令
三、 clickhouse-client命令行参数
--host, -h-– 服务端的host名称, 默认是localhost。您可以选择使用host名称或者IPv4或IPv6地址。--port– 连接的端口,默认值:9000。注意HTTP接口以及TCP原生接口使用的是不同端口。--user, -u– 用户名。 默认值:default。--password– 密码。 默认值:空字符串。--query, -q– 使用非交互模式查询。--database, -d– 默认当前操作的数据库. 默认值:服务端默认的配置(默认是default)。--multiline, -m– 如果指定,允许多行语句查询(Enter仅代表换行,不代表查询语句完结)。--multiquery, -n– 如果指定, 允许处理用;号分隔的多个查询,只在非交互模式下生效。--format, -f– 使用指定的默认格式输出结果。--vertical, -E– 如果指定,默认情况下使用垂直格式输出结果。这与–format=Vertical相同。在这种格式中,每个值都在单独的行上打印,这种方式对显示宽表很有帮助。--time, -t– 如果指定,非交互模式下会打印查询执行的时间到stderr中。--stacktrace– 如果指定,如果出现异常,会打印堆栈跟踪信息。--config-file– 配置文件的名称。--secure– 如果指定,将通过安全连接连接到服务器。--history_file— 存放命令历史的文件的路径。--param_<name>— 查询参数配置查询参数.
参考
边栏推荐
- NPDP如何续证?操作指南来了!
- Informatics Olympiad 1338: [example 3-3] hospital setting | Luogu p1364 hospital setting
- 3.3、项目评估
- 2.8、项目管理过程基础知识
- 小程序代码的构成
- Wanglaoji pharmaceutical's public welfare activity of "caring for the most lovely people under the scorching sun" was launched in Nanjing
- 【愚公系列】2022年7月 Go教学课程 004-Go代码注释
- Sort and projection
- haas506 2.0开发教程 - 阿里云ota - pac 固件升级(仅支持2.2以上版本)
- Abnova丨CRISPR SpCas9 多克隆抗体方案
猜你喜欢
![Informatics Orsay all in one 1339: [example 3-4] find the post order traversal | Valley p1827 [usaco3.4] American Heritage](/img/f0/0f985425bd61d9852af0b5fd7307ee.png)
Informatics Orsay all in one 1339: [example 3-4] find the post order traversal | Valley p1827 [usaco3.4] American Heritage

【刷题记录】1. 两数之和

重上吹麻滩——段芝堂创始人翟立冬游记
mysql全面解析json/数组

CVPR 2022 | common 3D damage and data enhancement

14、Transformer--VIT TNT BETR

Analyze the knowledge transfer and sharing spirit of maker Education

鸿蒙os第四次学习
![[Yugong series] go teaching course in July 2022 004 go code Notes](/img/18/ffbab0a251dc2b78eb09ce281c2703.png)
[Yugong series] go teaching course in July 2022 004 go code Notes

Frequent MySQL operations cause table locking problems
随机推荐
Go file path operation
如何让化工企业的ERP库存账目更准确
Welcome to the game and win rich bonuses: Code Golf Challenge officially launched
Maker education infiltrating the transformation of maker spirit and culture
物联网智能家居基本方法实现之经典
Informatics Olympiad 1337: [example 3-2] word search tree | Luogu p5755 [noi2000] word search tree
鸿蒙os第四次学习
Monorepo管理方法论和依赖安全
Duchefa p1001 plant agar Chinese and English instructions
王老吉药业“关爱烈日下最可爱的人”公益活动在南京启动
Abnova丨 MaxPab 小鼠源多克隆抗体解决方案
【刷题记录】1. 两数之和
haas506 2.0开发教程 - 阿里云ota - pac 固件升级(仅支持2.2以上版本)
Abnova total RNA Purification Kit for cultured cells Chinese and English instructions
Common view container class components
MySQL fully parses json/ arrays
Applet global configuration
Chemical properties and application instructions of prosci Lag3 antibody
Abnova fluorescent dye 620-m streptavidin scheme
教你自己训练的pytorch模型转caffe(三)