需要使用union语句,例如:SELECT test, yeardate FROM a1 WHERE test like '123%' AND yeardata='2002'
UNION
SELECT test, yeardate FROM a2 WHERE test like '123%' AND yeardata='2002'
UNION
SELECT test, yeardate FROM a3 WHERE test like '123%' AND yeardata='2002'
UNION
SELECT test, yeardate FROM a4 WHERE test like '123%' AND yeardata='2002'
UNION
SELECT test, yeardate FROM a2 WHERE test like '123%' AND yeardata='2002'
UNION
SELECT test, yeardate FROM a3 WHERE test like '123%' AND yeardata='2002'
UNION
SELECT test, yeardate FROM a4 WHERE test like '123%' AND yeardata='2002'
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货