MSSQL 인덱스 조회
/* [MSSQL] 인덱스 조회 */ SELECT A.NAME AS TBL_ID , B.TYPE , B.NAME AS IDX_ID , C.KEY_ORDINAL , D.NAME AS COL_ID , C.IS_DESCENDING_KEY /*, C.IS_INCLUDED_COLUMN , B.INDEX_ID , B.TYPE_DESC , B.IS_PRIMARY_KEY , B.IS_UNIQUE_CONSTRAINT , B.IS_DISABLED , B.IS_HYPOTHETICAL , C.INDEX_COLUMN_ID , C.COLUMN_ID*/ FROM SYS.TABLES A INNER JOIN SYS.INDEXES B ON A.OBJECT_ID = B.OBJECT_ID AND B.TYPE IN ('1'..
[ORACLE] 난수 생성
/****************************** FUNCTION 생성하기 ************************************/ CREATE OR REPLACE FUNCTION GETTEMPNUM ( P_NULL NUMBER /* NULL 리턴율 */ , P_BGN NUMBER /* 범위시작숫자 */ , P_END NUMBER /* 범위종료숫자 */ , P_SCL NUMBER /* 반올림자릿수 */ , P_TYPE NUMBER /* 0:기본, 1:정규분포, 2:역정규분포, 3:롱테일, 4:롱헤드, 5:정비례, 6:역비례, 7:증가, 8:감소 */ ) RETURN NUMBER IS /* * PGM ID : GETTEMPNUM * TITLE : 임시데이터생성 * AUTHOR : grap..