一劣领、導(dǎo)入execl表格 test1 和 test2
二姐军、執(zhí)行sql語(yǔ)句
SELECT* FROM test1
LEFT JOIN test2 ON test1.numid = test2.numid
UNION
SELECT* FROM test1
RIGHT JOIN test2 ON test1.numid = test2.numid
三、導(dǎo)出合并結(jié)果
一劣领、導(dǎo)入execl表格 test1 和 test2
二姐军、執(zhí)行sql語(yǔ)句
SELECT* FROM test1
LEFT JOIN test2 ON test1.numid = test2.numid
UNION
SELECT* FROM test1
RIGHT JOIN test2 ON test1.numid = test2.numid
三、導(dǎo)出合并結(jié)果