ipad百度云下载失败:asp中用sql 怎么制作搜索,比如我想搜索带某个关键字的全部记录
来源:百度文库 编辑:中科新闻网 时间:2024/05/05 21:58:51
我用的是sql数据库
select * from 表 where 字段 like "%关键字%"
不过这个对于大数据时效率值得考虑
完全匹配查询使用
sql="select * from table where colname='"&keyword&"'"
模糊查询
sql="select * from table where colname like '%%"&keyword&"%%'"
select * from 表 where 列名=关键字