我想把读取出来的字段存到数组里(string [] a)应该怎么做public string QeryList() { string str = " "; string qery = "SELECT Nums from orderList "; SqlDataReader reader = DBHelper.GetReadData(qery); if (reader.HasRows) { reader.Read(); str += "\n 数量:"+reader["Nums"].ToString(); } return str; }
2 回答
- 2 回答
- 0 关注
- 748 浏览
添加回答
举报
0/150
提交
取消