如果出现错误,如何返回 cqlsh 提示符?

发布于 2025-01-17 22:07:39 字数 256 浏览 4 评论 0原文

每当我在查询中犯错时,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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

天生の放荡 2025-01-24 22:07:39

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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文