oraclebrowsertypesschematoad

Toad for Oracle 10.5.1.3 - How to find DataType info like in Schema Browser


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.

enter image description here

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.

enter image description here

Is there any way to have a Select statement return that same information?

Thanks!


Solution

  • 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).