如果两张表的字段类型相同,长度相同,可以用union,(事实上字段有点差异也可以,但相同肯定行)
select newsid,newstitle,newscontent from news
union
select newsid,username,replaycontent from replay
select newsid,newstitle,newscontent from news
union
select newsid,username,replaycontent from replay
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货