怎样做一个站内的搜索系统(asp)
来源:百度知道 编辑:UC知道 时间:2024/05/27 02:58:44
比如我的数据库里面有red apple/green apple/yellow apple/... apple
那么我想别人在使用搜索的时候只要写 apple 就可以搜索到所有带有apple的项目。
red apple
green apple
yellow apple
... apple
那么我想别人在使用搜索的时候只要写 apple 就可以搜索到所有带有apple的项目。
red apple
green apple
yellow apple
... apple
假定数据库的表为Table,字段名为Fruit,搜索框ID为KeyWord则Sql语句:
Select * from [Table] where Fruit like '%"&KeyWord&"%'