这是什么问题啊?你是要干嘛用的啊?
解决方案 »
- 关于C#中的try{} catch{}
- C#计算器,事件批量处理处理不了 请高手帮忙看下代码
- 请问如何用正则表达式匹配下面的字符串??
- 怎样把动态页面转换成WORD文档
- C#中怎么使用打印机打印报表?
- 小弟初学c# 问一个关于接口继承的问题请那位大虾解决以下
- 知道为什么很多C#的chm格式的电子书打不开吗
- 保存的结构类型数据,如何删除其中指定的记录?
- 如何实现点击按钮在按钮正上方悬浮类似Lable的东西。要求显示的数据能够对其进行操作。
- winform如何实现拉伸窗口边缘窗口按照初始长宽比缩放大小
- [Transaction(ReadOnly = false)]中看到的东西咋不一样呢?
- 局域网传输速度测试
你想让大家围观吗!!
oCmd = new MySqlCommand("select * from `hy` order by `stationid` desc;", oCnn);
oCmd = new MySqlCommand("select * from `hy` order by `nalja` desc;", oCnn);
oCmd = new MySqlCommand("select * from `hy` order by `sigan` desc;", oCnn);
oCmd = new MySqlCommand("select * from `hy` order by `ou` desc;", oCnn);
oCmd = new MySqlCommand("select * from `hy` order by `oi` desc;", oCnn);
oCmd = new MySqlCommand("select * from `hy` order by `signal` desc;", oCnn);
oCmd = new MySqlCommand("select * from `hy` order by `gas` desc;", oCnn);
oCmd = new MySqlCommand("select * from `hy` order by `sim` desc;", oCnn);
oCmd = new MySqlCommand("select * from `hy` order by `sensor1` desc;", oCnn);
oCmd = new MySqlCommand("select * from `hy` order by `sensor2` desc;", oCnn);
oCmd = new MySqlCommand("select * from `hy` order by `sensor3` desc;", oCnn);
oCmd = new MySqlCommand("select * from `hy` order by `sensor4` desc;", oCnn);
oCmd = new MySqlCommand("select * from `hy` order by `H2S` desc;", oCnn);
oCmd = new MySqlCommand("select * from `hy` order by `NH3` desc;", oCnn);
oReader = oCmd.ExecuteReader(); 你上面oCmd的Command.Text始终为最下面那个,前面的都没用上
应该用个循环给oCmd的Text属性轮流赋值执行