day24) [Oracle]정보 추출, 가공을 통해 원하는 데이터 얻기(INSTR, SUBSTR,REPLACE,LPAD,RTRIM,TRIM)
[테이블 생성] create table test( tpk int primary key, tname varchar(100) not null, tnumber varchar(100), temail varchar(100) ); insert into test values((select (nvl(max(tpk),0))+1 from test), '홍길동', '010-1034-3434', 'qkqkqk1004@nate.com'); insert into test values((select (nvl(max(tpk),0))+1 from test), '김두루미', '070-9999-8888', 'kimbird@hanmail.net'); insert into test values((select (nvl(max(tpk),0))+..
2022. 1. 30.
day24) [Oracle] 대소문자 구별 없이 모두 검색(AND, OR, LOWER, UPPER, NOT, IN)
[테이블 생성] 대소문자 구분없는 데이터 생성 create table fruit( name varchar(20) not null, price int default 0, cnt int default 0 ); insert into fruit values('ApplE', 1000, 3); insert into fruit values('APPLE', 1100, 4); insert into fruit values('apple', 1200, 5); insert into fruit values('banana', 1200, 6); insert into fruit values('coconut', 1300, 5); insert into fruit values('grape', 900, 7); [AND] -n가지 조건이 모두..
2022. 1. 28.