Oracle queries the corresponding fields, comments and other information according to the table name

SELECT A.column_name field name, A.data_type data type, A.data_length length, A.data_precision integer digits, A.Data_Scale decimal places, A.nullable allow nulls, A.Data_default default value, B.comments remarks, A .TABLE_NAME table name FROM user_tab_columns A, user_col_comments B WHERE a.COLUMN_NAME = b.column_name AND A.Table_Name = B.Table_Name AND A.Table_Name = 'name of table to query'

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325481878&siteId=291194637