엄호연
-
자바스크립트 쿠키생성 제거 가져오기개발/javascript 2016. 2. 3. 09:44
쿠키생성 function setCookie(cName, cValue, cDay){ var expire = new Date(); expire.setDate(expire.getDate() + cDay); cookies = cName + '=' + escape(cValue) + '; path=/ '; // 한글 깨짐을 막기위해 escape(cValue)를 합니다. if(typeof cDay != 'undefined') cookies += ';expires=' + expire.toGMTString() + ';'; document.cookie = cookies; } 쿠키 가져오기 function getCookie(cName) { cName = cName + '='; var cookieData = document...
-
MYSQL BROB 에서 TEXT 로 변경하기개발/dbms 2016. 1. 29. 12:13
CAST(SOMCOULMN AS CHAR(10000) CHARACTER SET utf8)
-
mysql 동적컬럼 병렬 처리개발/dbms 2016. 1. 29. 09:38
SET @sql = NULL; SELECT GROUP_CONCAT( CONCAT( 'max(case when col = ''', col, ''' then value end) as `', col, '`') ) INTO @sql FROM ( select concat('order', `order`) col from tableA union all select concat('item', `item`) col from tableA )d; SET @sql = CONCAT('SELECT id, ', @sql, ' from ( select id, concat(''order'', `order`) col, data value from tableA union all select id, concat(''item'', item)..
-
hashMap 키값 없이 불러오기개발/java 2016. 1. 29. 09:24
import java.util.HashMap; import org.junit.Test; public class TEST { @Test public void tttt(){ HashMap h = new HashMap(); h.put("1", "a"); h.put("2", "b"); h.put("3", "c"); h.put("4", "d"); h.put("5", "e"); h.put("6", "f"); for (String mapkey : h.keySet()){ System.out.println("key:"+mapkey+",value:"+h.get(mapkey)); } } }
-
-