查询列信息

select count(1), table_name from all_col_comments where owner = 'ILIFE4_FW' group by table_name order by count(1) desc

(select count(column_name) from cols where table_name=upper('cs_content_banner_update') and column_name=upper('BANNER_NAME_0'))

SELECT COLUMN_NAME,DATA_TYPE
FROM all_tab_cols
WHERE
--table_name = v_TableName AND
owner='ILIFE4_FW'
AND OWNER = sys_context('USERENV', 'CURRENT_SCHEMA')


   select *  from   user_cons_columns a
   where  a.OWNER='ILIFE4_FW'

   AND A.constraint_name IN (SELECT  constraint_name
   FROM user_constraints b
   WHERE a.owner = b.owner
   AND a.table_name = b.table_name
   AND B.constraint_type in ('P')  )

你可能感兴趣的:(查询列信息)