左外连接:select * from T_Person left join T_Card on T_Person.CardId = T_Card.CardId
左外连接只匹配后只增加指定列:SELECT a1.*,a2.imcode FROM a1 LEFT JOIN a2 ON a1.a=a2.a
左外连接:select * from T_Person left join T_Card on T_Person.CardId = T_Card.CardId
左外连接只匹配后只增加指定列:SELECT a1.*,a2.imcode FROM a1 LEFT JOIN a2 ON a1.a=a2.a
转载于:https://www.cnblogs.com/boringzone/p/8484334.html