⑴ ASP sql的like问题,请高手指教
sql="select * from userinfor where userid LIKE '%a%'"
用这个...
⑵ asp代码中like的用法是什么
sql = "select * from info where 栏目大类='"&late_class(0)&"' and 区域名称='"&area_city(0)&"' and (信息标题 like '%"&info_key&"%' or 字段1 like '%"&info_key&"%' or 字段2 like '%"&info_key&"%' or ……) order by 发表时间 desc"
⑶ ASP中sql语句的like问题
select * from [guestbook] where g_msg like '%"request("txtitle")"%' order by ID desc
⑷ sqlserver2005里面,asp查询语句 like 能够用上的字段类型是什么
版本的问题!版本不同就会出现你说的那种状况
⑸ asp+access 模糊搜索时在页面上用SQL用like* 在数据库中能查到数据,但是在页面上不显示
把*换成百分号
因为在access里用的是ANSI-89规范的通配符集
可是在asp中,走了API接口,所以通配符集就会使用ANSI-92,也就是百分号那种了
⑹ Asp Sql 语句like 用法
你可以改用instr函数试试,比如要查询字段abc包含"123"的记录,可以这样:
…… where instr(abc,'123')>0 ……
⑺ asp的sql的like特定查询
你掉了字段
and name like
另外,最好用[name],因为属于关键字
*************
like '%"&a31&"% order by
错了,少了一个'
like '%"&a31&"%' order by
⑻ asp sql like 搜不出来(asp+access)
备注字段不能用%,要用*
sql="select * from News where Content like'*2222*'"
⑼ asp的sql查询like语句怎么写
sql = "select * from content where name like '%"复古"%' order by id asc"
变量的话
sql = "select * from content where name like '%"&str&"%' order by id asc"
⑽ asp sql like 无数条件 超过where条件数限制 超过99条限制 该怎么个写法
建议用正则表达式,不能用like,你确定能等得了吗?
你的语句需要优化