Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.3.0 |  CUBRID 8.3.1 |  CUBRID 8.4.0 |  CUBRID 8.4.1 |  CUBRID 8.4.3 |  CUBRID 9.0.0 | 

DROP SUPERCLASS Clause

Description

Deleting a super class from a class means removing the relationship between two classes. If a super class is deleted from a class, it changes inheritance relationship of the classes as well as of all their subclasses.

Syntax

ALTER CLASS

.

.

.

DROP super class class_name [ { , class_name }_ ]

[ INHERIT resolution [ {, resolution }_ ] ] [ ]

 

resolution:

{ column_name | method_name } OF super class_name [ AS alias ]

For the first class_name, specify the name of the class to be modified. For the second class_name, specify the name of the super class to be deleted. If a name conflict occurs after deleting a super class, see the Resolving Class Conflict section for the resolution.

Example 1

In the following example, the female_event class inherits from the event class.

CREATE CLASS female_event UNDER event

Example 2

In the following example, the ALTER statement deletes the event super class from the female_event class. The attributes that the female_event class inherited from the event class do not exist any more.

ALTER CLASS female_event

DROP super class event