icespace
icespace

Reputation: 501

How to know object type name for a object table? (Oracle)

If a table is defined as "create table xxx as type_name" by sb. How can I know the type_name? (Oracle DB)

Upvotes: 1

Views: 250

Answers (1)

NullUserException
NullUserException

Reputation: 85478

You can query the all_object_tables view.

SELECT table_type 
  FROM all_object_tables
 WHERE table_name = 'XXX'

Note that the syntax to create an object table of type type_name is:

CREATE TABLE xxx OF type_name; -- OF, not AS

Upvotes: 1

Related Questions