当前位置:首页
开发技术指南» 文章正文
    引言:

 ·有分拿 寻找函数    »显示摘要«
    摘要: 我用一个jtogglebutton 的 button , 想在它形态变化前,检查一个变量,如果是false就不用改变那个 button 的形状。但不知道用哪个函数才可以使它的形状不改变~~~ 请指教!!!!!! ......
 ·如何给webbrowser赋url    »显示摘要«
    摘要: 我插入了webbrowser控件,属性名是:idc_explorer1,我想在下面(button1)里给 webbrowser赋url,让它访问http://www.sina.com.cn 请问怎么写? void cwebdlg::onbutton1() { // todo: add your control notification handler code here } ......


union后的order by

select   top   10   num   from   a  
  union  
  select   top   10   num   from   b  
  union  
  select   top   10   num   from   c  
  order   by   num   desc  
   
  我想把上面几个语句联合起来形成一个大的结果集,但我只想要这个结果集的num最大的前10个。  
   
  如类似上面的语句肯定不对这只是把几个表的10各结果组合起来形成结果集,还不是我想要得order   by   desc的降序效果。  
  应该怎么写呢?  
  谢谢,小弟不才,请教。。。

NO.1   作者: zjcxc

select   top   10   *   from(  
  select   top   10   num   from   a  
  union  
  select   top   10   num   from   b  
  union  
  select   top   10   num   from   c  
  )a     --子查询  
  order   by   num   desc


    摘要: 我照着书上的例子操作,可是程序就是不行,下面是具体的代码. time.java public class time { private int hour; private int minute; private int second; public void time() {settime(0,0,0);} public void settime(int hh,int mm,int ss)......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE