English 中文(简体)
OrientDB Tutorial

OrientDB Database Commands

OrientDB Record Commands

OrientDB Class Commands

OrientDB Cluster Commands

OrientDB Property Commands

OrientDB Vertex Commands

OrientDB Edge Commands

OrientDB Advanced Concepts

OrientDB Interfaces

OrientDB Useful Resources

Selected Reading

OrientDB - Drop Class
  • 时间:2024-10-18

OrientDB - Drop Class


Previous Page Next Page  

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.

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

DROP CLASS <class> 

Drop a class with the class name.

Example

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
Advertisements