ASP怎樣搜索備註型字段?
ASP怎樣搜索備註型字段?
我下載了一個程序,有搜索備註型字段的,但我看一下,複製到我的代碼上去就不行了。。
後來發現在那個例子上的備註型是UNICODE編碼為否,我也改我的數據庫為否了。
但還是不行呀。。鬱悶,我用的代碼是
if skind="stitle" then
sql="select id,title,tdate,count,kind from article where title like '%"&checkStr(skey)&"%' ORDER by id DESC"
end if
if skind="scontent" then
sql="select id,title,tdate,count,kind from article where content like '%"&checkStr(skey)&"%' ORDER by id DESC"
end if
例子上的是
if ssort="2" then
set rs=server.createobject("adodb.recordset")
sql ="select * from article inner join type on article.typeid=type.typeid where (content like '%"&checkStr(keywords)&"%') order by date Desc"
rs.open sql,conn,1,1
希望哪位可以幫我解決一下這個問題,先謝了。
PS:第一次發問題,不懂規則,有不對的地方請原諒。