DB
-
oracle lock걸리는거 해제한 커맨드 목록 (feat: 강사님)DB/Oracle(DB) 2023. 7. 25. 12:35
Microsoft Windows [Version 10.0.19045.3208] (c) Microsoft Corporation. All rights reserved. C:\Users\Parkjinsu>sqlplus system/1111 SQL*Plus: Release 11.2.0.2.0 Production on 화 7월 25 12:13:51 2023 Copyright (c) 1982, 2014, Oracle. All rights reserved. ERROR: ORA-01017: invalid username/password; logon denied Enter user-name: system Enter password: Connected to: Oracle Database 11g Express Edition..
-
where?DB/Oracle(DB) 2023. 7. 7. 11:41
SELECT * from order_list where coffee != '카푸치노' /*카푸치노가 아닌것 출력*/ ; SELECT * from order_list where coffee in('카푸치노','그린티') ; SELECT * from order_list where coffee in('카푸치노','그린티') /*in 조건은 or이라 보면됨 */ /*where coffee not in('카푸치노','그린티') /*in 조건은 or이라 보면됨 */ ; SELECT * from order_list where coffee like '오렌%' /* 오렌이 포함된 것만 출력*/ SELECT * from order_list where coffee not like '카푸%' /*카푸가 아닌것만 출력*/ --..
-
-
INSERT<creat>DB/Oracle(DB) 2023. 7. 6. 15:11
/*INSERT INTO table_name(column name, column name) values ( )*/ INSERT INTO coffee_menu (coffee, kind, price) VALUES ('아메리카노','커피',2000); INSERT INTO coffee_menu (coffee, kind, price) VALUES ('카페라떼','커피',3000); INSERT INTO coffee_menu (coffee, kind, price) VALUES ('카푸치노','커피',3000); INSERT INTO coffee_menu (coffee, kind, price) VALUES ('그린티','논커피',3500); INSERT INTO coffee_menu (coffee, kind, pr..
-
connection & table 생성 <creat>DB/Oracle(DB) 2023. 7. 6. 14:36
CREATE TABLE coffee_menu ( no number GENERATED AS IDENTITY , coffee VARCHAR2(100) NOT NULL , /*VARCHAR2는 가변 길이를 의미(일반적으로 많이 씀)*/ kind VARCHAR2(100) NOT NULL , price number(11) DEFAULT 0 NOT NULL, /* 숫자타입 number */ reg_day date DEFAULT sysdate NOT NULL , /* 날짜타입 date */ mod_day date DEFAULT sysdate NOT NULL , CONSTRAINT pk_coffee_menu PRIMARY KEY(no) ) ; COMMENT ON TABLE coffee_menu IS '커피/음료 메뉴'..