JOIN 分为内连接,外连接(左外连接,右外连接,全外连接)
内连接: SELECT A.* FROM A INNER JOIN B ON A.ID=B.ID
左外连接: SELECT A.* FROM A LEFT JOIN B ON A.ID = B.ID
右外连接: SELECT A.* FROM A RIGHT JOIN B ON A.ID = B.ID
全外连接: SELECT A.*, B.* FROM A FULL OUTER JOIN B ON A.ID = B.ID
SELECT *
FROM LIVEUPGRADEDB L FULL OUTER join [AssociaDB] A ON L.[Table name] =A.[Table name]