摘要:
//对于select count(*) as 个数 from myTest 如果myTest表中没有数据 在结果集中【个数列】的数据为0 //对于select max(id) as 最大编号 from myTest 如果myTest表中没有数据 在结果集总【最大编号列】的值为null. //bool temp=Convert.ToBoolean(DBNull.Value); 错 //Convert.To类型() 对DBNull.Value转换的影响,除了ToString()/Convert.ToString()能转换成""外,其他类型都会报错(对象不能从 DBNull 转换为其他类型)。DBN 阅读全文
posted @ 2010-09-01 17:49
fumen
阅读(2266)
评论(0)
推荐(0)
浙公网安备 33010602011771号