相同的字段值我有拖表这样Mysql的连接两个表获得基于条件
表一
id email firstname lastname
1 [email protected] xx xx
2 [email protected] xb ab
表B
id email firstname lastname
1 [email protected] sd cx
2 [email protected] df dr
我想喜欢这个
email firstname lastname
[email protected] xx xx
[email protected] xb ab
[email protected] df dr
任何人请帮助我。我试过工会,明显没有得到我的结果
在你的表中,有名字和姓氏的不同值电子邮件地址为[email protected]。不应该纠正? –
向我们展示您已经测试 – bdn02
的表名和姓氏不同的select union。 – srivathi