string str = "select top 3 Pname,count(PNum) as Num,sum(TotalPrice) as price from [order] group by PName order by price desc"; DataSet ds = SqlHelper.Queryall(str);......現在代碼是這樣的。我想把查出來的Num,和Price 分別放到兩個數組里。例如 Num中為 1,2,3,4,5 和 Price中為 5.5,4.5,3.5,2.5,1.5 時 我想要將它分別放到兩個數組里 int[] Num={1,2,3,4,5}; float Price={ 5.5,4.5,3.5,2.5,1.5}; 請問應該怎么弄,請代碼相告,謝謝!
- 2 回答
- 0 關注
- 513 瀏覽
添加回答
舉報
0/150
提交
取消