关闭

查询列信息

266人阅读 评论(0) 收藏 举报

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')  )

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:379455次
    • 积分:4862
    • 等级:
    • 排名:第6278名
    • 原创:103篇
    • 转载:175篇
    • 译文:0篇
    • 评论:24条
    源码网站