[DBeaver] Oracle - Join
TABLE 생성 -- 회원 테이블 CREATE TABLE MEMBER ( NAMEVARCHAR2(100) , EMP_NONUMBER PRIMARY KEY, DEPT_NO NUMBER, AGENUMBER, ADDRVARCHAR2(100), REGIST_DATE TIMESTAMP, BIRTH_DAYDATE ) -- 부서 테이블 CREATE TABLE DEPT( DEPT_NONUMBER PRIMARY KEY, DEPT_NAMEVARCHAR2(100), ADDRVARCHAR2(100) ) INSERT * MEMBER INSERT INTO MEMBER(NAME ,EMP_NO ,DEPT_NO,AGE , ADDR , REGIST_DATE ,BIRTH_DAY) VALUES('white' ,1000 ,100,1 , '대..
2023. 3. 19.
[DBeaver] Oracle 조회,삽입,삭제, 테이블 삭제
-- MEMEBER 테이블 조회 SELECT * FROM MEMBER; -- MEMBER 테이블에 데이터 삽입 INSERT INTO MEMBER(NAME , AGE , ADDR , REGIST_DATE ,BIRTH_DAY) VALUES('white' , 1 , '대한민국', SYSTIMESTAMP ,to_date('03-19-2023','MM-DD-YYYY')); -- 전체 데이터 삭제 DELETE FROM MEMBER; -- 테이블 삭제 DROP TABLE MEMBER;
2023. 3. 19.