neo4j 文档:https://neo4j.com/docs/getting-started/current/cypher-intro/
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
# 创建联合索引
CREATE INDEX ON :Person(age, country)
# 删除联合索引
DROP INDEX ON :Person(age, country)