如何利用MySQL實現(xiàn)三張表連接union?
假設(shè)三張表結(jié)構(gòu)一樣,題主可以參考下列sql語句,A表與B表union,然后將聯(lián)合后的結(jié)果集再與C表unionallselectt.*from(select*fromAunionselect*fromB)tunionallselect*fromC;
如何利用MySQL實現(xiàn)三張表連接union?
假設(shè)三張表結(jié)構(gòu)一樣,題主可以參考下列sql語句,A表與B表union,然后將聯(lián)合后的結(jié)果集再與C表unionallselectt.*from(select*fromAunionselect*fromB)tunionallselect*fromC;