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

 

 ·如何去掉滚动条    »显示摘要«
    摘要: 我的程序是多文档的,从cscrollview继承而来,现在,在任何情况下,我都不要滚动条出现,如何实现? ......
    摘要: 如提,谢谢!!!!!!!!!! ......


如何把一个变量放到SELECT的WHERE中

declare   @prostr   nvarchar(50)  
   
  if   @pro=ALL  
  set   @prostr=  
  else  
  set   @prostr=   and   substring(ord_no,1,1)=+   +   substring(@pro,1,1)    
   
  select   *   from   orderinf   where   sur_date>=@fd   and   sur_date<=@ed   and     mark<>PRO+   @prostr     group   by   ord_no)  
   
  ----------------------------------------------  
  上面的set   @prostr=   and   substring(ord_no,1,1)=+   +   substring(@pro,1,1)    
  和mark<>PRO+   @prostr    
  怎么写才是对的?  
  谢谢大家  
 

NO.1   作者: pengdali

declare   @prostr   nvarchar(50)  
   
  if   @pro=ALL  
  set   @prostr=  
  else  
  set   @prostr=   and   substring(ord_no,1,1)=+substring(@pro,1,1)+  
   
  exec(select   *   from   orderinf   where   sur_date>=@fd   and   sur_date<=@ed   and     mark<>PRO   +@prostr+     group   by   ord_no))

NO.2   作者: SophiaWang

declare   @prostr   nvarchar(50)  
   
  if   @pro=ALL  
  set   @prostr=  
  else  
  set   @prostr=   and   substring(ord_no,1,1)=+   substring(@pro,1,1)   +    
   
  select   *   from   orderinf   where   sur_date>=@fd   and   sur_date<=@ed   and     mark<>PRO+   @prostr     group   by   ord_no)


 ·    »显示摘要«
    摘要: 响应对象 错误 asp 0156 : 80004005 标题错 /aspsun/end.asp, 行7 http 标题已经写入到 客户浏览器。任何 http 标题的修改必须在写入页内容之前。 end.asp代码如下: <!-- #include file="kstime.asp" --> <!-- #include file="cookie......
» 本期热门文章:

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