본문 바로가기

삽질하기

ORACLE WM_CONCAT Function Table TEST ID VALUE 1 a 1 b 1 c 2 d 2 e 2 f SELECT ID, WM_CONCAT(VALUE) FROM TEST GROUP BY ID RESULT ID WM_CONCAT(VALUE) 1 a,b,c 2 d,e,f 더보기
JSP PageContext ErrorData Example // 에러페이지 URI Request URI: // 서블릿이름 Servlet Name: // 에러코드 Status Code: // 에러메시지 Message: Stack Trace: 더보기
html을 엑셀 파일로 출력할 경우, style로 포멧 제어하기 스타일 지정하기 ( 안에 삽입한다.) 셀 안에 개행문자 넣기 br {mso-data-placement:"same-cell";} 셀 속성 > 범주를 텍스트로 지정하기 .클래스명 {mso-number-format:"\@";}; 셀 속성 > 범주 > 포멧 설정하기 .클래스명 {mso-number-format:"포멧";}; 함수(수식)넣기 더보기
자바(Java) 정규표현식 Lookaround 예제 Positive Lookahead 예제 'abc' 또는 '123' 문자열로 시작하면서 a-z,0-9로 이루어진 문자열을 찾는 정규표현식 public class RegularExpressionTest { public static void main(String[] args) { String input = "123onetwothree"; String regex = "(?=abc|123)[a-z0-9]+"; Pattern pattern = Pattern.compile(regex); Matcher matcher = pattern.matcher(input); if(matcher.find()) { System.out.println(matcher.group()); } else { System.out.println("N.. 더보기
Comparable 구현하여 사용자객체 정렬하기 public class UserObject implements Comparable { private int priority; public UserObject(int priority) { this.priority = priority; } public int compareTo(UserObject o) { if(this.priority o.priority) { return 1; } else { return 0; } } public String toString() { return "priority : " + this.priority; } } public class CompareTest { public static v.. 더보기
Java KeyCode public class KeyCode { public static final int UNDEFINED = 0; public static final int BACKSPACE = 8; public static final int TAB = 9; public static final int ENTER = 10; public static final int ESCAPE = 27; public static final int SPACE = 32; public static final int PAGE_UP = 33; public static final int PAGE_DOWN = 34; public static final int LEFT = 37; public static final int UP = 38; public st.. 더보기
Checking the Informix Database Server version using SQL Query select first 1 dbinfo("version", "full") from systables 더보기
자바(java) GZIPInputStream/OutputStream을 이용한 문자열 압축과 압축해제 import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.util.zip.GZIPInputStream; import java.util.zip.GZIPOutputStream; import java.io.IOException; public class StringZipper { //GZIPOutputStream을 이용하여 문자열 압축하기 public byte[] zipStringToBytes(String input) throws IOException { ByteArrayOutputSt.. 더보기