티스토리 뷰

공부

[SQL] join?

seunggabi 승가비 2018. 9. 8. 19:12

[SQL] JOIN?


// JOIN 
// INNER JOIN
// LEFT OUTER JOIN
// RIGHT OUTER JOIN
// FULL OUTER JOIN

SELECT * FROM a INNER JOIN b WHERE a.b_id = b.b_id;
SELECT * FROM a LEFT OUTER JOIN b where a.b_id = b.b_id;
SELECT * FROM a RIGHT OUTER JOIN b WHERE a.b_id = b.b_id;
SELECT * FROM a FULL OUTER JOIN b WHERE a.b_id = b.b_id;


'공부' 카테고리의 다른 글

[Ubuntu] Linux terminal process without kill after logout  (0) 2018.09.12
[SQL] groupBy & having?  (0) 2018.09.08
[SQL] join?  (0) 2018.09.08
[SQL] where & orderBy & limit  (0) 2018.09.08
[DB] 트랜잭션(작성중)  (0) 2018.08.27
[OS] Process & Thread  (0) 2018.08.20
댓글
댓글쓰기 폼