오라클
(10)
Oracle : 열을 행으로 변환 (max 함수)
CREATE TABLE TEMP( DATA1 VARCHAR2(10), DATA2 VARCHAR2(10),
Oracle : 시퀀스 생성,조회,삭제 출처 : http://psdmerong.raony.net/zbxe/?docume ··· 3Doracle @ sequence 생성법* 시퀀스 생성시 여러개의 테이블에서 동시 생성이 가능하다. (일련번호만 증가하거나 감소한다)* 시퀀스는 정해진 값만 돌고 자동으로 없어진다.* 시퀀스는 s,sq,sqe 롤 시작한다. create sequence 시퀀스명. increment by ~ 증가하는 값 start with ~ 시작 넘버 maxvalue ~ 최대값 minvalue ~ 최소값 cyche ~ 도는 횟수. SQL> create sequence seq_test1 2 increment by 1 3 start with 20 4 maxvalue 25 5 nocycle; @ sequence 컬럼 생성법. 1 inser..
Oracle : 시퀀스 생성,조회,삭제 출처 : http://psdmerong.raony.net/zbxe/?docume ··· 3Doracle @ sequence 생성법* 시퀀스 생성시 여러개의 테이블에서 동시 생성이 가능하다. (일련번호만 증가하거나 감소한다)* 시퀀스는 정해진 값만 돌고 자동으로 없어진다.* 시퀀스는 s,sq,sqe 롤 시작한다. create sequence 시퀀스명. increment by ~ 증가하는 값 start with ~ 시작 넘버 maxvalue ~ 최대값 minvalue ~ 최소값 cyche ~ 도는 횟수. SQL> create sequence seq_test1 2 increment by 1 3 start with 20 4 maxvalue 25 5 nocycle; @ sequence 컬럼 생성법. 1 inser..