今天在调试程序的时候,需要用到and or,如果不掌握技巧输出的结构与我们想象的差距有点大,这里分享一下,希望大家以后多多支持
asp的SQL语句中and 和or是不是不可以同时使用呢"htmlcode">
select case lcase(keyarr(I)) case "js" sqlk=sqlk&" and (title like '%"&keyarr(I)&"%' or title like '%javascript%')" case "javascript" sqlk=sqlk&" and (title like '%"&keyarr(I)&"%' or title like '%js%')" case "c#" sqlk=sqlk&" and (title like '%"&keyarr(I)&"%' or title like '%csharp%')" case "csharp" sqlk=sqlk&" and (title like '%"&keyarr(I)&"%' or title like '%c#%')" case else sqlk=sqlk&" and title like '%"&keyarr(I)&"%'" end select