日期:2014-05-17  浏览次数:20851 次

没有主键de数据库表要读出一列的多个数据c#怎么写
如表:Monitor
有四个字段:
name price cw others
1 1 2 3
1 1 3 3
2 2 f 2
2 2 b 3 
2 2 c 2
3 3 3 3 
3 3 t 4
3 2 2 2

我想读出name=2的count字段值f,b,c
取出f,b,c外面用的着f,b,c这几个值
怎样写,c#,服务器代码?

------解决方案--------------------
SELECT price ,cw ,others from Monitor where name='2';
SqlDataReader 循环