ListView表中数据有可能是空值。但数据表需要把保留小数后三位,当空值时就报错。怎么判断空值?
可以在sql里面判断
select case when 字段 is null then 0 else 字段 end from 表