2013年12月18日
摘要: 有可能读出的数据为NULL,可以这样改:方法一:while (reader.Read()){ for (int i = 0; i < 7; i++) { if (reader.IsDBNull(i)) { continue; } readstring[i] = reader.GetString(i); }}方法二:string sql = "select ISNULL([Name],''),ISNULL([Address],''),ISNULL([WebAddress],''),IS... 阅读全文
posted @ 2013-12-18 14:24 yun007 阅读(3889) 评论(0) 推荐(0) 编辑