|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
ASP一般认为只能运行在IIS上,正如前面所提到的,这并不是十分正确,事实上,ASP也能运行在Apache上。ApacheASP可在任意Apache服务器上运行有限的ASP功能,所需做的,只需打开mod_perl。字符串|组合查询组合查询之中心:拼接字符串
功效:界说查询前提,界说前往集,界说排序体例
平台:Windows2000Server+IIS5.0+SQLServer2000
言语:VBScript
Cheery_Ke
***********Start************
**************读取变量*************
.
.
.
seaLastUpdTime=Request("seaLastUpdTime1")&"-"&Request("seaLastUpdTime2")&"-"&Request("seaLastUpdTime3")
returnItem=Request("ReturnItem")******团体设定要前往的字段
Response.WritereturnItem
***********拼接字符串***************************
IfreturnItem""Then
SQL="SelectComID,ComName,"&returnItem&"FromClientInfoWhereISInva=0"
Else
SQL="SelectComID,ComNameFromClientInfowhereIsInva=0"
EndIf
IfseaComName""Then
SQL=SQL&"AndComNameLike%"&seaComName&"%"
EndIf
Ifseanexus1""Then
SQL=SQL&"Andnexuslike%"&seanexus1&"%"
EndIf
Ifseanexus2""Then
SQL=SQL&"Andnexuslike%"&seanexus2&"%"
EndIf
IfseaComType""Then
SQL=SQL&"AndComType="&seaComType&""
EndIf
IfseaComProv""Then
SQL=SQL&"AndComProv="&seaComProv&""
EndIf
IfseaTimeFrist11""Then
seaTimeFrist1=seaTimeFrist11&"-"&seaTimeFrist12&"-"&seaTimeFrist13
SQL=SQL&"AndTimeFrist>"&seaTimeFrist1&""
EndIf
IfRequest(seaTimeFrist1)""Then
seaTimeFrist1=Request(seaTimeFrist1)
SQL=SQL&"AndTimeFrist>"&seaTimeFrist1&""
EndIf
IfseaTimeFrist21""Then
seaTimeFrist2=seaTimeFrist21&"-"&seaTimeFrist22&"-"&seaTimeFrist23
SQL=SQL&"AndTimeFrist<"&seaTimeFrist2&""
EndIf
IfRequest(seaTimeFrist2)""Then
seaTimeFrist2=Request(seaTimeFrist2)
SQL=SQL&"AndTimeFrist<"&seaTimeFrist2&""
EndIf
IfseaNearTime11""Then
seaNearTime1=seaNearTime11&"-"&seaNearTime12&"-"&seaNearTime13
SQL=SQL&"AndTimeNear>"&seaNearTime1&""
EndIf
IfRequest(seaNearTime1)""Then
seaNearTime1=Request(seaNearTime1)
SQL=SQL&"AndTimeNear>"&seaNearTime1&""
EndIf
IfseaNearTime21""Then
seaNearTime2=seaNearTime21&"-"&seaNearTime22&"-"&seaNearTime23
SQL=SQL&"AndTimeNear<"&seaNearTime2&""
EndIf
IfRequest(seaNearTime2)""Then
seaNearTime2=Request(seaNearTime2)
SQL=SQL&"AndTimeNear<"&seaNearTime2&""
EndIf
IfseaAppTime11""Then
seaAppTime1=seaAppTime11&"-"&seaAppTime12&"-"&seaAppTime13
SQL=SQL&"AndAppTime>"&seaAppTime1&""
EndIf
IfRequest(seaAppTime1)""Then
seaAppTime1=Request(seaAppTime1)
SQL=SQL&"AndAppTime>"&seaAppTime1&""
EndIf
IfseaAppTime21""Then
seaAppTime2=seaAppTime21&"-"&seaAppTime22&"-"&seaAppTime23
SQL=SQL&"AndAppTime<"&seaAppTime2&""
EndIf
IfRequest(seaAppTime2)""Then
seaAppTime2=Request(seaAppTime2)
SQL=SQL&"AndAppTime<"&seaAppTime2&""
</p>Access是一种桌面数据库,只适合数据量少的应用,在处理少量数据和单机访问的数据库时是很好的,效率也很高。但是它的同时访问客户端不能多于4个。access数据库有一定的极限,如果数据达到100M左右,很容易造成服务器iis假死,或者消耗掉服务器的内存导致服务器崩溃。 |
|