简体   繁体   English

如何在Oracle SQL开发人员中查看不同类型的列

[英]How to see columns of different type in Oracle SQL developer

Say a table has several subclass types. 假设一个表有几个子类类型。 How can I see all columns from different types in sqldeveloper? 如何在sqldeveloper中查看不同类型的所有列? In table view, only can see common columns. 在表视图中,只能看到常见列。 Thanks. 谢谢。

This is not possible in SQL Developer as it currently stands (as of 1.5.4). 这在SQL Developer中是不可能的,因为它目前(从1.5.4开始)。

Incidentally it isn't possible in SQL*PLus either. 顺便说一句,在SQL * PLus中也是不可能的。 Setting DESCRIBE DEPTH 2 just shows more detail regarding the super type: 设置DESCRIBE DEPTH 2只显示有关超类型的更多详细信息:

SQL> desc my_people
 Name                                      Null?    Type
 ----------------------------------------- -------- --------------------
 CREATE_DATE                               NOT NULL DATE
 ID                                        NOT NULL NUMBER
 DETAILS                                            PERSON

SQL> set describe depth 2
SQL> desc my_people
 Name                                      Null?    Type
 ----------------------------------------- -------- --------------------
 CREATE_DATE                               NOT NULL DATE
 ID                                        NOT NULL NUMBER
 DETAILS                                            PERSON
 PERSON is NOT FINAL
   NAME                                             VARCHAR2(30 CHAR)

SQL> 

(I checked. set describe depth 3 doesn't do anything, what it controls is the expansion of types used as attributes of the displayed types.) (我检查过.set set describe depth 3没有做任何事情,它控制的是用作显示类型属性的类型的扩展。)

I don't know the reason for sure but I would hazard a guess that it is something to do with the unbounded number of levels of sub-types permitted. 我不知道确定的原因,但我会猜测它与允许的无限数量的子类型有关。 Furthermore, Types are relatively new and still under appreciated in the database. 此外,类型相对较新,在数据库中仍然受到重视。 Oracle is primarily relational and procedural, and the object-oriented features are treated as red-headed step-children. Oracle主要是关系和程序性的,面向对象的特性被视为红头发的子女。

Of course, SQL Developer is extensible, so it would be possible to write an addon which does this expansion. 当然,SQL Developer是可扩展的,因此可以编写一个执行此扩展的插件。 Hmmm.... 嗯....

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM