命令 - DICTIONARY PUT
绑定一条记录到词典的key上,使得可以通过DICTIONARY GET
命令访问。
语法
DICTIONARY PUT <key> <record-id>
<key>
定义绑定的key<record-id>
定义绑定的记录RID
例子
美国总统词典中,绑定记录Barack Obama到
obama
:orientdb>
DICTIONARY PUT obama 5:4
------------------------------------------------------------------------ Class: Person id: 5:4 v.1 ------------------------------------------------------------------------ parent : null children : [Person@5:5{parent:Person@5:4,children:null,name:Malia Ann, surname:Obama,city:null}, Person@5:6{parent:Person@5:4, children:null,name:Natasha,surname:Obama,city:null}] name : Barack surname : Obama city : City@-6:2{name:Honolulu} ------------------------------------------------------------------------ The entry obama=5:4 has been inserted in the database dictionary
DICTIONARY KEYS
命令展示所有key(V2.2版本后)。更多索引信息,参考Indexes。