mysql 多張表聯合查詢、一個字段 結構相同


方法1

select * from table1
union all
select * from table2 

方法2

select * from scc_cdr p1,scc_cdr p2 where p1.xuid = p2.xuid and p1.id != p2.id


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章