SELECT * FROM TABLE A LEFT JOIN TABLE B ON A.KEY = B.KEY
SELECT * FROM TABLE A RIGHT JOIN TABLE B ON A.KEY = B.KEY
SELECT * FROM TABLE A INNER JOIN TABLE B ON A.KEY = B.KEY
SELECT * FROM TABLE A LEFT JOIN TABLE B ON A.KEY = B.KEY WHERE B.KEY IS NULL
SELECT * FROM TABLE A RIGHT JOIN TABLE B ON A.KEY = B.KEY WHERE A.KEY IS NULL
SELECT * FROM TABLE A FULL OUTER JOIN TABLE B ON A.KEY = B.KEY
SELECT * FROM TABLE A FULL OUTER JOIN TABLE B ON A.KEY = B.KEY WHERE A.KEY IS NULL OR B.KEY IS NULL
JOIN的七种连接
最新推荐文章于 2024-08-19 09:28:34 发布