oracle比较两个库同表栏目差异

 

 select T.COLUMN_NAME,t.data_type ,c.comments 
  from ALL_TAB_COLUMNS T
       ,user_col_comments c
 where 1=1
  and c.table_name = t.table_name 
  and c.column_name=t.column_name
  and t.OWNER=ATS001
  and T.TABLE_NAME = ENTITIES
minus
 select T.COLUMN_NAME,t.data_type ,c.comments 
 from ALL_TAB_COLUMNS T
       ,user_col_comments c
 where 1=1
  and c.table_name = t.table_name 
  and c.column_name=t.column_name
  and t.OWNER=ATS002
  and T.TABLE_NAME = ENTITIES
  --union
  /*select T.COLUMN_NAME
  from ALL_TAB_COLUMNS T
 where T.TABLE_NAME = ‘ACCOUNTAPPLIES‘
  and t.OWNER=‘ATS002‘
*/

 

oracle比较两个库同表栏目差异,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。