asp的SQL语句中and和or同时使用的注意事项(sql语句中as的用法和作用)深度揭秘

随心笔谈1年前 (2023)发布 admin
152 0


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

© 版权声明

相关文章