OrientDb DROP 属性 不会删除记录中的 属性 值
OrientDb DROP PROPERTY does not remove the property values in records
根据 OrientDB 文档,它说
The Drop Property command removes a property from the schema. This
doesn't remove the property values in records, but just change the
schema information. Records will continue to have the property values
if any.
这在我的代码中造成了一些问题,使应用程序为删除的属性抛出空指针异常。有什么方法可以删除 属性 并从现有记录中删除值。
提前致谢。
找到解决方案here
要从现有记录中删除 属性 到 运行 以下查询:
UPDATE <class> REMOVE <PROPERTY> WHERE <CONDITION>
根据 OrientDB 文档,它说
The Drop Property command removes a property from the schema. This doesn't remove the property values in records, but just change the schema information. Records will continue to have the property values if any.
这在我的代码中造成了一些问题,使应用程序为删除的属性抛出空指针异常。有什么方法可以删除 属性 并从现有记录中删除值。
提前致谢。
找到解决方案here
要从现有记录中删除 属性 到 运行 以下查询:
UPDATE <class> REMOVE <PROPERTY> WHERE <CONDITION>