asp下实现多条件模糊查询SQL语句
作者:cmscn 日期:2008-08-10
摘要:这篇文章主要针对有一定asp编程经验和SQL语句基础的爱好者如何写模糊查询语句和多条件查询。
很多网友问到如何写模糊查询语句和多条件查询,今天网友小爱又问起了这个问题,刚好前几天给一个单位写个OA涉及到多条件模糊查询,那个查询比较多、专业名词也多,这里我整理了一下,假设以姓名、性别、电话号...作为数据库中的字段名。
通常写一个简单的模糊查询的SQL语句格式可以如下例:
sql="select * from 表名 where 字段名 like ’%" & request.form("请求变量") & "%’ "
很多网友问到如何写模糊查询语句和多条件查询,今天网友小爱又问起了这个问题,刚好前几天给一个单位写个OA涉及到多条件模糊查询,那个查询比较多、专业名词也多,这里我整理了一下,假设以姓名、性别、电话号...作为数据库中的字段名。
通常写一个简单的模糊查询的SQL语句格式可以如下例:
sql="select * from 表名 where 字段名 like ’%" & request.form("请求变量") & "%’ "
ASP缓存功能问题
作者:cmscn 日期:2008-07-25
一个修改了的Editplus2的ASP自动完成模板(转)
作者:cmscn 日期:2008-07-24
#TITLE=ASP 3
;Author: Michael G. Bronner
;Date: 03/20/2002
;Document: ASP AutoCompletion File
;About: I created this file to assist my programming, especially with function syntax.
; However, some functionality might need to be adjusted, added, or eliminated in
; order to streamline its efficiency. I made an attempt to incorporate ALL possible
;Author: Michael G. Bronner
;Date: 03/20/2002
;Document: ASP AutoCompletion File
;About: I created this file to assist my programming, especially with function syntax.
; However, some functionality might need to be adjusted, added, or eliminated in
; order to streamline its efficiency. I made an attempt to incorporate ALL possible
URLEncode
作者:cmscn 日期:2008-06-09
电影频道调用
作者:cmscn 日期:2008-05-19
Google SiteMap 生成工具
作者:cmscn 日期:2008-04-26
<%
' sitemap_gen.asp
' A simple script to automatically produce sitemaps for a webserver, in the Google Sitemap Protocol (GSP)
' by Francesco Passantino
' www.iteam5.net/francesco/sitemap
' v0.2 released 5 june 2005 (Listing a directory tree recursively improvement)
'
' sitemap_gen.asp
' A simple script to automatically produce sitemaps for a webserver, in the Google Sitemap Protocol (GSP)
' by Francesco Passantino
' www.iteam5.net/francesco/sitemap
' v0.2 released 5 june 2005 (Listing a directory tree recursively improvement)
'
最简单的ASP分页代码
作者:cmscn 日期:2008-04-23
原帖及讨论:http://bbs.bc-cn.net/dispbbs.asp?BoardID=10&ID=90981
<%
set conn=server.createobject("adodb.connection")
conn.open("DRIVER=Driver do Microsoft Access (*.mdb);UID=admin;pwd=;dbq="&server.mappath("1.mdb"))
set rs=server.createobject("adodb.recordset")
sql="select * from student"
<%
set conn=server.createobject("adodb.connection")
conn.open("DRIVER=Driver do Microsoft Access (*.mdb);UID=admin;pwd=;dbq="&server.mappath("1.mdb"))
set rs=server.createobject("adodb.recordset")
sql="select * from student"