[DBMS] SQL -5- [INSERT, UPDATE, DELETE]
SELECT * FROM EMP; INSERT INTO EMP VALUES (7777,'์ด์ฉํ','DEVELOPER','7777',SYSDATE,4000,500,20); SELECT * FROM EMP; INSERT INTO EMP ( EMPNO, ENAME, DEPTNO ) VALUES (7778,'ํ๊ธธ๋',10); SELECT * FROM EMP; INSERT INTO EMP (EMPNO, ENAME, DEPTNO ) VALUES(7777,'์ฑ์ถํฅ',10);--PK์ค๋ณต INSERT INTO EMP (EMPNO, ENAME, DEPTNO ) VALUES(7779,'๋ฌด์ง๊ฐ',50); SELECT * FROM DEPT; -- UPDATE SELECT * FROM PLAYER; --PLAYERํ
์ด๋ธ ํ์ธ -..
2021. 3. 22.
[DBMS] - 4 - SQL - DROP, TRUNCATE
ใ
กใ
กใ
กใ
กใ
ก --ํ
์คํธ ๋ฐ์ดํฐ ์ฝ์
INSERT INTO TBL_BOOK VALUES('1000', '์์ค', 'DBMS', 'ORACLE', 'ORACLE' ); SELECT * FROM TBL_BOOK; -- ๋ด๋ถ ๋ฐ์ดํฐ ์ญ์ TRUNCATE TABLE TBL_BOOK; -- ์ญ์ ํ ์กฐํ SELECT * FROM TBL_BOOK; ใ
กใ
กใ
กใ
กใ
ก ใ
กใ
กใ
กใ
กใ
ก -- ์ฌ๋ฌ ๋ฐ์ดํฐ ์ฝ์
ํ ์ญ์ INSERT INTO TBL_BOOK VALUES ( '1000','์์ค', 'DBMS','ORACLE','ORACLE'); INSERT INTO TBL_BOOK VALUES ( '1001','์์ค', 'DBMS','ORACLE','ORACLE'); INSERT INTO TBL_BOOK VALUES ( '1002','์์ค..
2021. 3. 16.