⑴ 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,你確定能等得了嗎?
你的語句需要優化