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

    摘要: 我在程序中加入#include <linux/file.h>后编译会出很多错误,其中第一条是: /usr/include/linux/file.h:8:parse error before ( token 请问如何解决此问题,多谢! ......
 ·movzx     »显示摘要«
    摘要: movzx 的用法??? 与mov 的区别? ......


关于case的问题

case语法中是否可以使用insert和update,delete语言?  
  如  
  select  
  case   when   no   exists(select   *   from   table1   where   table1.no   =   table2.no)  
            then  
                insert   table1(v1,v2)   select   1,table2.no  
            else  
                update   table1   set   v1   =   1,v2   =   table2.no  
  end  
   
  from   table2

NO.1   作者: MorningTea

--不可以,后面必须是一个明确的值,并且必须是唯一  
   
  select  
  case   when   no   exists(select   *   from   table1   where   table1.no   =   table2.no)  
            then  
                select   table2.no   from   table2   where   条件1--这里必须select   出来table2.no唯一  
            else  
                select   table2.no   from   table2   where   条件2--这里必须select   出来table2.no唯一  
  end  
  from   table2  
   
   
   
 


    摘要: 我是刚从asp转到asp.net编程,请教大伙一个问题,.net编程在程序头都有类似: sub page_load(sender as object,e as evenargs) ... end sub 或者: function getdatareader(sql as string) as oledbdatareader ... end function 之类的语法,说是定义变量类型,我......
» 本期热门文章:

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