//对于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 转换为其他类型)。DBNull.Value是指数据库中数据为NULL数据。
//Convert.To类型() 对null转换的影响 都会转化为要转换成类型的默认值(默认值有点不欠当,哈哈)。如:Convert.ToString(null)或
object s=null Convert.ToString(s)转换成""【s.ToString()报错】,Convert.ToInt32(null)转换成0,Convert.ToBoolen(null)转化成false等。