开发者

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

开发者 https://www.devze.com 2023-04-01 20:37 出处:网络
If a table is defined as \"create table xxx as type_name\" by sb. How can I know the type_name? (Or开发者_开发百科acle DB)You can query the all_object_tables view.

If a table is defined as "create table xxx as type_name" by sb. How can I know the type_name? (Or开发者_开发百科acle DB)


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
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号