千家信息网

oracle 动态查看表字段

发表于:2025-02-02 作者:千家信息网编辑
千家信息网最后更新 2025年02月02日,select a.COLUMN_NAME || '(' || a.data_type || ')'as data_type,t.comments|| '(' || a.COLUMN_NAME || '
千家信息网最后更新 2025年02月02日oracle 动态查看表字段

select a.COLUMN_NAME || '(' || a.data_type || ')'as data_type,

t.comments|| '(' || a.COLUMN_NAME || ')'as filed

from user_col_comments t,user_tab_columns a

where t.table_name = upper('owt_blocdel')

and t.table_name =a.TABLE_NAME

and t.column_name =a.COLUMN_NAME

orderby column_id


0