neo4j nosql图数据库学习

1.索引 

 
 
# 给某类标签节点的属性添加索引
  CREATE INDEX ON : <label_name> (<property>)

# 删除某类标签节点属性索引
  DROP INDEX ON : <label_name> (<property>)

# 查看索引
  :schema

# 对属性创建唯一约束
  CREATE CONSTRAINT ON (<label_name>)  ASSERT <property_name> IS UNIQUE
    例如:create constraint on (cc:cell) assert cc.mobile is unique

# 删除唯一约束
  
DROP CONSTRAINT ON (<label_name>) ASSERT <property_name> IS UNIQUE
    例如:drop constraint on (cc:cell) assert cc.mobile is unique

猜你喜欢

转载自www.cnblogs.com/shmily3929/p/10911293.html