access asp 如何进行模糊查询
<!--#includefile="conn.asp"--><%setrs=server.CreateObject("adodb.recordset")Sql="Sele...
<!--#include file="conn.asp"-->
<%
set rs=server.CreateObject("adodb.recordset")
Sql="Select * from list where title like'*星期四*'"
rs.open Sql,conn,1,1
%>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
共有<%=rs.recordcount %>条记录
<table width="980" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" align="left">id</td>
<td height="30" align="left">标题</td>
<td height="30" align="left">时间</td>
</tr>
<% do while not rs.eof %>
<tr>
<td height="30"><%= rs("id") %></td>
<td height="30"><%= rs("title") %></td>
<td height="30"><%= rs("time") %></td>
<% rs.movenext%>
</tr>
<% loop %>
</table>
<% rs.close%>
<% conn.close %>
</body>
</html>
这样任何东东都查询不出来,希望各位大侠不吝赐教, 展开
<%
set rs=server.CreateObject("adodb.recordset")
Sql="Select * from list where title like'*星期四*'"
rs.open Sql,conn,1,1
%>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
共有<%=rs.recordcount %>条记录
<table width="980" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" align="left">id</td>
<td height="30" align="left">标题</td>
<td height="30" align="left">时间</td>
</tr>
<% do while not rs.eof %>
<tr>
<td height="30"><%= rs("id") %></td>
<td height="30"><%= rs("title") %></td>
<td height="30"><%= rs("time") %></td>
<% rs.movenext%>
</tr>
<% loop %>
</table>
<% rs.close%>
<% conn.close %>
</body>
</html>
这样任何东东都查询不出来,希望各位大侠不吝赐教, 展开
6个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询