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

 

    摘要: 表中有一个time字段,是datetime类型,现在要把getdate()减去那个字段的时间后返回秒数,sql怎么写? ......
 ·纪念我的兔子---狗狗    »显示摘要«
    摘要: 狗狗前天晚上死了,再也见不到它了:( ......


在sql语句中怎样运用数组

比如定义一个数组a(5)  
  a(0)="二保"   a(1)="一保"   ...  
  <%  
  for   i=0   to   4  
  ...  
  strrst="select   *   from   fix   where   修理内容   like%二保%"  
  ...  
  next%>  
  这个strrst="select   *   from   fix   where   修理内容   like%二保%"     语句该如何代换?

NO.1   作者: ministrybill

sorry,  
  strrst="select   *   from   fix   where   修理内容   like%"&a(0)&"%"

NO.2   作者: LoneHome

<%  
  a(0)="二保"  
  a(1)="一保"   ...  
   
   
  strrst="select   *   from   fix   where   修理内容   like%"&a(0)"%   "  
  for   i=1   to   4  
  strrst=strrst&"or   修理内容   like%"&a(i)"%   "  
  next  
  %>  
  ?


 ·帮我看一下,什么意思    »显示摘要«
    摘要: var httpob = new activexobject("microsoft.xmlhttp"); httpob.open("post","badinaddpost.asp",false); httpob.send(mxml.xmldocument); var str = httpob.responsetext; ......
» 本期热门文章:

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