분류 전체보기
-
데이터가 많은 DB셀렉트 처리하기MYSQL 2020. 6. 11. 17:06
a.*, e.bssamt FROM (SELECT bplic.* FROM BidPblancListInfoCnstwkInnoDB AS bplic INNER JOIN (SELECT DISTINCT bidNtceNo, bidNtceOrd FROM BidPblancListInfoLicenseLimitInnoDB WHERE lcnsLmtCode IN ( '0001', '0002', '0010', '0020', '0036', '0037', '1458', '1459', '1460' ) AND rgstDt BETWEEN '2017-10-01' AND '2019-03-31') AS lncs ON ( lncs.bidNtceNo = bplic.bidNtceNo AND lncs.bidNtceOrd = bplic.bidNtceO..
-
데이트픽커 initJQUERY 2020. 6. 11. 17:05
$.datepicker.setDefaults({ dateFormat: 'yy-mm-dd', prevText: '이전 달', nextText: '다음 달', monthNames: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'], monthNamesShort: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'], dayNames: ['일', '월', '화', '수', '목', '금', '토'], dayNamesShort: ['일', '월', '화', '수', '목', '금', '토'], dayNamesMin: ['일', '월', '화', ..
-
-
mysql explodeMYSQL 2020. 6. 9. 14:42
CREATE FUNCTION SPLIT_STRING(str VARCHAR(255), delim VARCHAR(12), pos INT) RETURNS VARCHAR(255) RETURN REPLACE(SUBSTRING(SUBSTRING_INDEX(str, delim, pos), LENGTH(SUBSTRING_INDEX(str, delim, pos-1)) + 1), delim, ''); SELECT SPLIT_STRING('apple, pear, melon', ',', 2)
-
update 문자열 추가MYSQL 2020. 6. 9. 14:42
UPDATE TABLE_NAME SET AAA = CONCAT('S2', AAA); 비교 값넣기 INSERT INTO BidFitList SET mb_no='{$memSet['mb_no']}', bidNtceNo='{$fit['bidNtceNo']}', bidNtceOrd='{$fit['bidNtceOrd']}', set_sq='{$memSet['set_sq']}' ON DUPLICATE KEY UPDATE mb_no='{$memSet['mb_no']}', bidNtceNo='{$fit['bidNtceNo']}', bidNtceOrd='{$fit['bidNtceOrd']}', set_sq = IF(SUBSTRING_INDEX(set_sq,',',-1) != '{$memSet['set_sq']}', CON..
-
-
crontab 숏코드 환경설정변수리눅스 2020. 6. 9. 14:40
#밑경로를 적어 환경변수 설정을 하여야 숏코드 사용가능 #패스 없는경우 풀경로를 적어줘야한다 예시) /usr/local/php/bin/php PATH=/usr/local/bin/:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/php/bin 0 1 * * * /usr/local/bin/backup.sh 0 1 * * * /usr/bin/rdate -s time.bora.net && /sbin/clock -w 0 12 * * * php /home/daonbid/cron/getNewsCron.php 0 12 * * * php /home/daonbid/cron/getNoticeCron.php 0 1 * * * php /home/daonbid/cron/getNtceInsttGroup.p..