Orientdb 简明教程

OrientDB - Drop Class

Drop Class 命令从模式中删除一个类。注意并维护一个一致的模式非常重要。例如,避免删除其他类的超类。关联的集群不会被删除。

The Drop Class command removes a class from the schema. It is important to pay attention and maintain a consistent schema. For example, avoid to remove classes that are super-classes of others. The associated cluster won’t be deleted.

以下是 Drop Class 命令的基本语法。

The following statement is the basic syntax of Drop Class command.

DROP CLASS <class>

通过类名称删除一个类。

Drop a class with the class name.

Example

尝试以下查询来删除类 Employee。

Try the following query to Drop a class Employee.

Orientdb> DROP CLASS Employee

如果成功执行了以上查询,您会获得以下输出。

If the above query is executed successfully, you will get the following output.

Class dropped successfully