日期:2014-05-19  浏览次数:20879 次

如何取得非重复记录的一项
我一次把数据库的数据全部放进dataset中
如何取出这个表中的一列呢

------解决方案--------------------
up
------解决方案--------------------
一列?


col1 col2 col3 ...
A1 A2 A3
B1 B2 B3
C1 C2 C3
...
时,你想取得A1,B1,C1...吗?



------解决方案--------------------
for(int i=0;i <dataset.tables[ "表名 "].Rows.count;i++)
{
dataset.tables[ "表名 "].Row[i][ "column列名 "]
}