[oracle] ๋ฐ์ดํฐ๋ฒ ์ด์ค ๊ธฐ๋ณธ ๋ช
๋ น์ด (select, where, and, or, between, ๋น๊ต์ฐ์ฐ์, like, in, order by)
์ ๋ง ๊ธฐ์ด์ ์ธ ๋ฐ์ดํฐ๋ฒ ์ด์ค ๋ช
๋ น์ด๋ฅผ ์ ๋ฆฌํด๋ดค๋ค. 1. select select ํ๋๋ช
form ํ
์ด๋ธ๋ช
; ์ด ํ์์ด ๊ธฐ๋ณธ์ด๋ค. ex) select * from tb_customer; ํ๋ฉด tb_customer ํ
์ด๋ธ์ ์ ์ฒด๋ฅผ ๋ณด์ฌ์ค๋ค. select ํ๋๋ช
as '๋ณ๋ช
' form ํ
์ด๋ธ๋ช
; ํ๋ฉด ํ๋๋ช
์ '๋ณ๋ช
'์ผ๋ก ๋ฐ๊ฟ์ ๋ํ๋ผ ์ ์๋ค. ์ด๋ ๋ณ๋ช
์ ๊ณต๋ฐฑ์ ํฌํจํ๋ค๋ฉด ๋ฐ์ดํ๋ฅผ ์ฌ์ฉํด์ค์ผํ๋ค. 2. where select ํ๋๋ช
from ํ
์ด๋ธ๋ช
where ์กฐ๊ฑด; 3. and select ํ๋๋ช
from ํ
์ด๋ธ๋ช
where ์กฐ๊ฑด1 and ์กฐ๊ฑด2 ...; 4. or select ํ๋๋ช
from ํ
์ด๋ธ๋ช
where ์กฐ๊ฑด1 or ์กฐ๊ฑด2 ...; * and , or ํผํฉ 5. between A and B.. s..
2021.10.14