一. 在sql server下处理需要导出的数据库

  1. 执行以下sql,查出所有'float'类型的字段名,手动将float类型改为decimal(18,4).

select 表名=d.name,字段名=a.name,类型=b.name 
FROM syscolumns a 
left join systypes b on a.xtype=b.xusertype
inner join sysobjects d on a.id=d.id  and d.xtype='U' and  d.name<>'dtproperties'
where b.name in ('float')
order by d.name;
View Code

相关文章: