梨树黑星病图片:ASP中用LIKE模糊查找问题??

来源:百度文库 编辑:中科新闻网 时间:2024/05/04 06:41:23
select * from sight where Passed=True and title like'%西湖%'
可以搜索出标题中含有‘西湖’的记录

select * from sight where Passed=True and h1 like'%荷花%'
上面这条语句找不到内容中包含‘荷花’的记录
但表里面字段中存在一条记录内容中包含荷花两个字
使用ACCESS数据库,TITLE为文本,h1为备注字断
同样的语法搜不同的字断一个能查一个不能,郁闷~

是否文本字断支持模糊查找,备注字断的不支持?

而like改成=就可以了,为什么不能用like啊

select * from sight where Passed=True and h1 like'%%荷花%%'