Toad for Oracle 10.5.1.3 - 如何像在架构浏览器中一样查找数据类型信息
使用 Toad for Oracle 时,精彩的模式浏览器会提供大量信息。我希望通过查询获得的信息之一是给定表的数据类型信息。
架构浏览器中提供的数据类型列(1 字节)中列出的额外信息是我在寻找什么。使用表 ALL_TAB_COLS 时,它提供了许多相同的信息,但没有提供有关数据类型的附加信息。
有没有办法让 Select 语句返回相同的信息?
谢谢!
When using Toad for Oracle the wonderful schema browser provides a lot of information. One piece of that info that I would like to have available via a query is the Data Type information for a given table.
That extra bit of info listed in the Data Type column (1 Byte), provided in the Schema Browser is what I am looking for. When using the table ALL_TAB_COLS it provides a lot of that same info but not that additional info about the Data Type.
Is there any way to have a Select statement return that same information?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
ALL_TAB_COLUMNS 中的 DATA_LENGTH 字段提供列的长度(在您的情况下为 1),而 CHAR_USED 标志区分 CHAR (C) 和 BYTE (B)。
The DATA_LENGTH field in ALL_TAB_COLUMNS provides the the length of the column (in your case 1), while CHAR_USED flag differentiates between CHAR (C) and BYTE (B).
这将是列
ALL_TAB_COLUMNS.CHAR_USED
来自手册:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_2094.htm#I1020277
That would be the column
ALL_TAB_COLUMNS.CHAR_USED
From the manual at:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_2094.htm#I1020277
如果这不起作用,您的表格可能是大写字母,所以请尝试此操作。
由于标题,我想添加一些信息。这是当您搜索
toad check what kind of data type Something is
时出现的第一件事。只需将光标放在编辑器窗口中的函数、表或其他对象上,然后按 F4 键,就会显示有关该对象的详细信息。
https://www.oreilly.com/library/查看/toad-for-oracle/9780134131900/ch03lev1sec3.html
If that doesn't work your table may be in capital letters so try this.
I wanted to add some information because of title. This is the first thing that comes up when you search for
toad check what kind of data type something is
.Simply put the cursor on a function, table, or other object in the editor window and press the F4 key, and detail about the object appears.
https://www.oreilly.com/library/view/toad-for-oracle/9780134131900/ch03lev1sec3.html