월의 마지막 일 구하기

/** * @Description 월의 마지막 일 구하기 * @Param String feemon //정산월:201911 * @return String 마지막일자: 31 */ public static String getLastDate(String feemon){ String result=""; try{ SimpleDateFormat sdf = new SimpleDateFormat("yyyyMM"); //dd 추가도 가능 Date d = sdf.parse(feemon); Calendar cal = Calendar.getInstance(); cal.setTime(d); int endDate = cal.getActualMaximum(Calendar.DAY_OF_MONTH); result = String.valueOf(endDate); }catch(ParseException e){ e.printStackTrace(); } return … 계속 읽기 월의 마지막 일 구하기

iframe 스크롤 가로/세로 숨기기

HTML iframe 엘리먼트의 세로스크롤 <iframe scrolling=yes></iframe> 이렇게 하고 iframe src에 들어간 화면의 body 엘리먼트의 style을 잡아준다. <body style="overflow-x:auto;overflow-y:hidden"> 이렇게 하면 가로스크롤만 보이게 된다.

언어별 캐쉬 방지

참조 : http://ellieya.tistory.com/68 HTML  <META http-equiv="Expires" content="-1"> <META http-equiv="Pragma" content="no-cache"> <META http-equiv="Cache-Control" content="No-Cache"> ASP    <% Response.Expires = 0 Response.AddHeader "Pragma","no-cache" Response.AddHeader "Cache-Control","no-cache,must-revalidate" %> JSP    <% response.setHeader("Cache-Control","no-store"); response.setHeader("Pragma","no-cache"); response.setDateHeader("Expires",0); if (request.getProtocol().equals("HTTP/1.1")) response.setHeader("Cache-Control", "no-cache"); %> response.setHeader("cache-control","no-store"); // http 1.1 response.setHeader("Pragma","no-cache"); // http 1.0 response.setDateHeader("Expires",0); // proxy server 에 cache방지. PHP <? header("Pragma: no-cache"); header("Cache-Control: no-cache,must-revalidate"); ?> … 계속 읽기 언어별 캐쉬 방지

WM_CONCAT보다 속도가 좋은 LISTAGG

참고사이트 : http://krespo.net/195 11g에서 가능 간단한 예 SELECT DEPTNO , LISTAGG(NAME, ',') WITHIN GROUP (ORDER BY NAME) AS NAME FROM TEST_DB WHERE DEPTNO = 1 GROUP BY DEPTNO; 데이터가 적을때는 문제 없었지만, 데이터가 많아지니 WM_CONCAT에서 속도를 다 잡아 먹고 있었다. 아래처럼 LISTAGG로 바꾸니 속도가 많이 빨라졌다. SELECT B.HICODE, B.HINAME, A.MCODE, A.MNAME, A.BUSINESSNUMBER, A.PURCHASETYPE , LISTAGG(DECODE(C.DDCFLAG,'I',C.ACQUIER,''),',') WITHIN GROUP … 계속 읽기 WM_CONCAT보다 속도가 좋은 LISTAGG