我现在有俩表,也是对俩表的多个字段模糊查询,我用concat (a.a1,a.a2,b.b1,b.b2)like '%?%' order by (时间字段)
然后出不来结果也不报错,我要查询的关键字可能是汉字也可能是字母数字组合,
select * from
(select a.a1,a.a2,a.a3,a.a4,b.b1,b.b2,b.b3,b.b4,b.b5
from a,b where
((a.a3 between "时间1"and "时间2") and( b.b3 between "时间1" and "时间2")) ) c
WHERE concat (c.a1,c.a2,c.b1,c.b2)like '%?%' order by c.a4,c.b4(时间字段排序)
然后出不来结果也不报错,我要查询的关键字可能是汉字也可能是字母数字组合,
select * from
(select a.a1,a.a2,a.a3,a.a4,b.b1,b.b2,b.b3,b.b4,b.b5
from a,b where
((a.a3 between "时间1"and "时间2") and( b.b3 between "时间1" and "时间2")) ) c
WHERE concat (c.a1,c.a2,c.b1,c.b2)like '%?%' order by c.a4,c.b4(时间字段排序)
------请原谅我的一无所知