村镇银行招聘信息:asp中用sql 怎么制作搜索,比如我想搜索带某个关键字的全部记录
来源:百度文库 编辑:高考问答 时间:2024/05/22 14:14:37
我用的是sql数据库
select * from 表 where 字段 like "%关键字%"
不过这个对于大数据时效率值得考虑
完全匹配查询使用
sql="select * from table where colname='"&keyword&"'"
模糊查询
sql="select * from table where colname like '%%"&keyword&"%%'"
select * from 表 where 列名=关键字