数据库字段对比语句

来源:互联网 发布:ads 差分端口 仿真 编辑:程序博客网 时间:2024/06/05 05:25
--test库 
select   d.name,a.name   ,b.name   ,a.length,   a.isnullable   
from   test..syscolumns   a,   test..systypes   b,test..sysobjects   d 
  where   a.xtype=b.xusertype   and   a.id=d.id   and   d.xtype= 'U ' 

--mysql库 
select   d.name,a.name   ,b.name   ,a.length,   a.isnullable 
  from   mysql..syscolumns   a,   mysql..systypes   b,mysql..sysobjects   d   
where   a.xtype=b.xusertype   and   a.id=d.id   and   d.xtype= 'U '
原创粉丝点击