我创建了一个
UDT
,但我现在不记得它的定义了。 cqlsh
中是否有一个命令可以用来列出所有 UDT 及其定义?
您可以使用以下方法逐行读取值:
UDTValue UdtData = row.getUDTValue(address);
UdtData.getString("Id");
这将显示当前密钥空间中的所有 UDT。
cqlsh> desc types
或
cqlsh> describe types
查看特定类型的模式
cqlsh> desc type <name of the UDT>
或
cqlsh> describe type <name of the UDT>