第一个,是原来的那个
string sql = @"SELECT a_name,e_name,e_ip,c_name,c_index FROM ((areas LEFT JOIN equipments ON (areas.a_name=equipments.e_area)) LEFT JOIN channels ON (equipments.e_ip=channels.c_equipment_ip))";第二个,我想要修改的 string sql = "select a.a_name,e.e_name,e.e_ip,c.c_name,c.c_index from equipments e,areas a,channels c where a.a_name=e.e_area and e.e_ip=c.c_equipment_ip";这2个SQL语句是用在刷新TreeView中的
第一个正常使用,为了搞明白意思,我自己写了第二条,但是运行时候发现TreeView不能刷新,请大家帮忙分析下
string sql = @"SELECT a_name,e_name,e_ip,c_name,c_index FROM ((areas LEFT JOIN equipments ON (areas.a_name=equipments.e_area)) LEFT JOIN channels ON (equipments.e_ip=channels.c_equipment_ip))";第二个,我想要修改的 string sql = "select a.a_name,e.e_name,e.e_ip,c.c_name,c.c_index from equipments e,areas a,channels c where a.a_name=e.e_area and e.e_ip=c.c_equipment_ip";这2个SQL语句是用在刷新TreeView中的
第一个正常使用,为了搞明白意思,我自己写了第二条,但是运行时候发现TreeView不能刷新,请大家帮忙分析下
解决方案 »
- 怎样实现程序启动时出现汽泡提示
- 头疼的SOCKETS无限制阻止问题 使用SELECT,POLL,异常捕获,SetSocketOption都无效果
- 两个插入记录到XML的操作,请问怎么创建事务?
- foreach(FileInfo f in di1.GetFiles())返回文件的次序好像不是你看到的吧?
- 为什么我的remoting在外网访问失败?
- 拖拽的经典问题!!帮顶!!高手该出手时就出手!!
- 版权问题
- 树形控件与AutoPostBack问题
- 求助! 控件全屏后监听不到鼠标滚轮滚动事件了!
- 多线程操作DataContext问题
- jquery ui dialog 里调用ajax 之后dialog出错(两贴同结)
- 求一个完整的POST源码
什么意思呀?不太明白,我改了第2条语句以后,TreeView不会刷新了,怎么回事呢?