[英]query to see class attribute
Is there a SQL syntax to see the value of an class attribute using WebUI of OrientDB ? 是否存在SQL语法,才能使用OrientDB的WebUI查看类属性的值?
I can use the following to edit the value : ALTER CLASS Employee CUSTOM minAge=16
( doc ) But I can't find a way to check out the value set. 我可以使用以下内容来编辑值: ALTER CLASS Employee CUSTOM minAge=16
( doc )但是我找不到方法来检查值集。
I can do that using Java API : graph.getVertexType("Employee").getCustom("minAge")
I need this as a SQL query. 我可以使用Java API来做到这一点: graph.getVertexType("Employee").getCustom("minAge")
我需要将此作为SQL查询。
my orientdb version : 2.1.19 我的orientdb版本:2.1.19
Try this: 尝试这个:
SELECT FROM (
SELECT expand(classes) from metadata:schema
) WHERE name = 'theClassName'
OrientDB v 2.1.x is not supported anymore, I strongly suggest you to upgrade to v 3.0 OrientDB v 2.1.x不再受支持,强烈建议您升级到v 3.0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.