Banner

My Tech Blog (์ธ๋ผ์ธ๋ทฐ)

NATURAL JOIN์—๋Š” ON ์ ˆ ์“ธ ์ˆ˜ ์—†๋‹ค.SELECT A.COL1, B.COL2FROM SAMPLE1 A NATURAL JOIN SAMPLE BON A.COL1 = B.COL1  Oracle์˜ ๊ฒฝ์šฐ OUTER JOIN ์ž‘์„ฑ ์‹œ (+) ๊ธฐํ˜ธ๋ฅผ ์‚ฌ์šฉํ•˜๋Š”๋ฐ ์ขŒ๋ณ€์ด๋‚˜ ์šฐ๋ณ€ ์ค‘ ํ•˜๋‚˜์—๋งŒ ํ‘œ๊ธฐํ•ด์•ผ ํ•œ๋‹ค.SELECT A.COL1, B.COL2FROM SAMPLE1 A, SAMPLE BWHERE A.COL1(+) = B.COL1(+); FULL OUTER JOIN์„ ๊ตฌํ˜„ํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” (+) ๊ธฐํ˜ธ ๋Œ€์‹  ํ‘œ์ค€ SQL ๊ตฌ๋ฌธ์„ ์‚ฌ์šฉํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. Oracle 9i ์ดํ›„๋ถ€ํ„ฐ๋Š” ํ‘œ์ค€ SQL FULL OUTER JOIN ๊ตฌ๋ฌธ์„ ์ง€์›ํ•˜๋ฏ€๋กœ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ํ˜•์‹์œผ๋กœ ์ž‘์„ฑํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค:SELECT A.COL1, B.COL2FROM TA..
์ธ์ ˆ๋ฏธ์˜€๋˜๊ฒƒ
'์ธ๋ผ์ธ๋ทฐ' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก
์ƒ๋‹จ์œผ๋กœ