bit数据库字段不能使用sum等数学统计公式,将其通过cast函数转化为tinyint类型就可以用
例:select sum(cast(m0101 as tinyint)) from table1

posted on 2007-11-22 14:58  cheerwen  阅读(478)  评论(0编辑  收藏  举报