开发者

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? (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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜