strQ="select * from student where ((student_name like '%"&str_text1&"%') or (ruxue_year like '%"&str_select2&"%') or (shixian like '%"&str_text2&"%') or (yuan_xi like '%"&str_text3&"%')) "
为什么不行?
另外要实现多个字段的模糊查询,如何实现?
...全文
1031打赏收藏
请教:关于模糊查询的问题
strQ="select * from student where ((student_name like '%"&str_text1&"%') or (ruxue_year like '%"&str_select2&"%') or (shixian like '%"&str_text2&"%') or (yuan_xi like '%"&str_text3&"%')) " 为什么不行? 另外要实现多个字段的模糊查询,如何实现?
strq= "SELECT * FROM internet_customer WHERE (student_name like '%" & str_test1 & "%' or ruxue_year like '%" & str_select2 & "%' or shixian like '%" & str_test2 & "%') "