您的位置:首页 > 数据库

数据库字段对比语句

2011-08-30 15:29 169 查看
--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 '
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐