본문 바로가기

전체 글

(182)
Jackson 라이브러리 @JsonIgnoreProperties@JsonProperty@JsonInclude외부 datatype 지원JodaTime 개요 여기를 클릭하여 펼치기... Jackson 은 자바용 json 라이브러리로 잘 알려져 있지만 Json 뿐만 아니라 XML/YAML/CSV 등 다양한 형식의 데이타를 지원하는 data-processing 툴이다.스트림 방식이므로 속도가 빠르며 유연하며 다양한 third party 데이타 타입을 지원하며annotation 방식으로 메타 데이타를 기술할 수 있으므로 JSON 의 약점중 하나인 문서화와 데이타 validation 문제를 해결할 수 있다.구성core moduleStreaming("jackson-core") : defines low-level streaming API, a..
스크립트 bytes 단위 처리 function byteCalculation(bytes) {var bytes = parseInt(bytes);var s = ['bytes', 'KBytes', 'MBytes', 'GBytes', 'TBytes', 'PBytes'];var e = Math.floor(Math.log(bytes)/Math.log(1024)); if(e == "-Infinity") return "0 "+s[0]; else return (bytes/Math.pow(1024, Math.floor(e))).toFixed(2)+" "+s[e];}
그림판으로 증명사진 만들기 관련 링크 - http://playlog.tistory.com/14
AXISJ 예제 소스 ## 어제오늘 날짜 구하기var now = new Date();var toDay = now.print("yyyy-mm-dd hh:mi:ss");now.setDate(now.getDate()-1);var yesterDay = now.print("yyyy-mm-dd hh:mi:ss");
postgresql merge query withupsertas(select 20 as user_id,'aaa' as hidden_columns, 50 as rows, 'bbb' as key, 'ccc' as default_columns),update_optionas(update config.users_info as u1 set hidden_columns = 'aaa',default_columns = 'ccc' from upsert where user_id = upsert.user_id and key = upsert.key)insert into config.users_info select upsert.user_id, upsert.hidden_columns, upsert.rows, upsert.key, upsert.default_columns f..
Postgresql 9.3. 산술 함수와 연산자 표 9-2. 산술 연산자연산자 이름설명예제결과+덧셈2 + 35-뺄셈2 - 3-1*곱2 * 36/나누기 (정수의 나눗셈에서 나머지를 절단)4 / 22%나머지 (정수의 나눗셈에서 나머지) 5 % 41^거듭제곱2.0 ^ 3.08|/제곱근|/ 25.05||/세제곱 근||/ 27.03!계승5 !120!!계승 (전치 연산자)!! 5120@절대값@ -5.05&이진 AND91 & 1511|이진 OR32 | 335#이진 XOR17 # 520~이진 NOT~1-2> 22 이진 연산자는 내부 데이터 형식에만 사용할 수 있습니다. 반면 다른 연산자는 모든 숫자 데이터 형식에 사용할 수 있습니다. 또한 이진 연산자는 표 9-10 에 나타내는 bit, bit varying 비트 문자열에 대해서도 사용할 수 있습니다. 표 9-3에 ..
postgresql 메뉴얼 사이트 https://www.postgresql.org/docs/manuals/ http://yeobi27.tistory.com/entry/PostgreSQL-%EC%A0%9C%EC%95%BD%EC%A1%B0%EA%B1%B4-ConstraintNOT-NULL-UNIQUE-PRIMARY-KEY%EA%B8%B0%EB%B3%B8%ED%82%A4-FOREIGN-KEY%EC%99%B8%EB%9E%98%ED%82%A4
PostgreSQL 문자열 함수와 연산자 표 9-5. SQL 문자열 함수와 연산자함수반환 값 형식설명例 예제結果결과string || stringtext문자열 결합'Post' || 'greSQL'PostgreSQL문자열 || 비 문자열 또는 비 문자열 || 문자열text하나가 비문자열인 입력 문자열 결합'Value: ' || 42Value: 42bit_length( string )int문자열의 비트수bit_length('jose')32char_length( string ) 또는 character_length( string )int문자열의 문자 수char_length('jose')4lower( string )text문자열을 소문자로 변환lower('TOM')tomoctet_length( string )int문자열의 바이트 수octet_length(..