asp查询access数据库,想把数据库中abc字段中为a和为b的项挑出来,如何编程?

是SELECT * FROM abc WHERE abc like a or abc like b吗?
2025-01-02 21:01:07
推荐回答(1个)
回答1:

严格匹配:SELECT * FROM abc WHERE abc='a' or abc='b'
模糊查询:SELECT * FROM abc WHERE abc like '%a%' or abc like '%b%'