SELECT app from t1 where bcn_id not in(76,77)
union all select bcr_appName from t2 where bcn_id not in(76,77)
union all select bcr_appName from t3 where bcn_id not in(76,77)
union all select bcr_appName from t4 where bcn_id not in(76,77)app
-----
test
gggg
test
test
kkkkkk
hhhhhh从4个表里查询app列,得出结果,但是test重复了,可不可以只出现一次test,或者最后结果给去掉重复,
能不能直接通过mysql实现呢,不想在后台代码里判断。。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货