为什么在asp(C#)不能对access数据库进行模糊查询
来源:百度知道 编辑:UC知道 时间:2024/06/05 00:37:33
我的sql语句在access里面可以正常的运行并且有结果
但到网页就不行了,什么结果都没有,我想知道是什么问题
请那站高手帮帮忙
我的sql语句(select * from users where names like'*你*')
但到网页就不行了,什么结果都没有,我想知道是什么问题
请那站高手帮帮忙
我的sql语句(select * from users where names like'*你*')
select * from users where names like'*你*'
改成
select * from users where names like'%你%'
你确定你的程序没问题?
应该是程序写的问题
还有你数据库连接没?打开没?
access的模糊不用% 用的应该是*
把其余程序发上来哦。。。
我的baiduHI