文件

关闭

关闭apach.卡桑德拉数据库连接

描述

例子

关闭(骗子的)关闭Cassandra.®数据库连接。

例子

全部收缩

使用Cassandra®数据库连接,显示键键,然后关闭连接。

使用本地主机地址创建Cassandra数据库连接。骗子是A.卡桑德拉目的。

联系点=“localhost”;Conn = Cassandra(接触点);

验证Cassandra数据库连接是否已打开。

val = isopen(conn)
val =逻辑1

数据库连接是开放的,因为开了函数返回1。否则,数据库连接已关闭。

在Cassandra数据库中显示键。

conn.keyspaces.
ANS =.1×6字符串数组“LeviceEdata”“System_Auth”“System_distributed”“System_schema”“System_traces”

关闭Cassandra数据库连接。

关闭(Conn)

输入参数

全部收缩

Cassandra数据库连接,指定为a卡桑德拉目的。

在R2018B中介绍