identify difference from NUMBER(5) and NUMBER(8,2) USER_TAB_COLUMNS

后端 未结 3 1113
猫巷女王i
猫巷女王i 2021-01-28 07:47

I want to get the columns names and datatype and its datatype\'s length .as example

if there is a table

SQL> create table TestTable(
  2    ID                


        
3条回答
  •  情话喂你
    2021-01-28 08:17

    Why don't you try SELECT * FROM information_schema.columns ?

    It has columns "table_schema, table_name, column_name, ordinal_position, is_nullable, data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_scale, datetime_precision", etc.

提交回复
热议问题