如果出现错误,如何返回 cqlsh 提示符?
每当我在查询中犯错时,Cassandra CQLSH都会显示以下错误。
> use TESTDB
.
.
.
.
.
Statements are terminated with a ';'. You can press CTRL-C to cancel an incomplete statement.
按CTRL-C将我带回Windows Shell。我不想仅仅因为语法错误而始终退出cqlsh。我能做些什么?
Whenever i make a mistake in the query, cassandra cqlsh will show the error below.
> use TESTDB
.
.
.
.
.
Statements are terminated with a ';'. You can press CTRL-C to cancel an incomplete statement.
Pressing CTRL-C will bring me back to the Windows shell. I dont want to always exit CQLSH just because of syntax error. What can I do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
CQL语句需要用半颜色(
;
)终止。您需要做的就是键入
;
,然后点击< enter>
以获取CQLSH提示符。即使您的CQL语句不正确,CQLSH也只会报告一个错误并将提示回馈。干杯!CQL statements need to be terminated with a semi-colon (
;
).All you need to do is type in
;
then hit<Enter>
to get the cqlsh prompt back. Even if your CQL statement is incorrect, cqlsh will just report an error and give you back the prompt. Cheers!