摘要:
有可能读出的数据为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... 阅读全文