zhangliao613的专栏

zhangliao613的副标题

查询列信息

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

阅读更多
个人分类: Oracle
上一篇查找global temporary table
下一篇jquery的fullCalender插件运用
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭