BLOG main image
전체보기 (77)
PHP (0)
JAVA (2)
ORACLE (5)
DB2 (0)
NETWORK (0)
LINUX (14)
etc... (6)
일상 (50)
Visitors up to today!
Today hit, Yesterday hit
daisy rss
tistory 티스토리 가입하기!
'etc...'에 해당되는 글 6건
2012. 5. 28. 16:51

WITH tmp AS ( 

SELECT idx=1, dt = cast('20090101' AS datetime) 

UNION ALL 

SELECT idx = idx + 1, dt = dateadd(d, 1, dt) 

FROM tmp 

WHERE dt < cast('20101231' AS datetime) 

SELECT 

dt

, year = datepart(year, dt) 

, month = datepart(month, dt) 

, day = datepart(day, dt) 

, weekofyear = datepart(wk , dt)

, weekofmonth = datepart(wk, dt) - datepart(wk, left(convert(varchar, dt, 112), 6)+ '01') + 1

, 요일 = datename(w, dt) 

, 분기 = datepart(q, dt) 

, 반기 = case when datepart(month,dt) BETWEEN 1 AND 6 then '상반기' else '하반기' end 

FROM tmp 

OPTION (maxrecursion 0) 


http://blog.daum.net/_blog/BlogTypeView.do?blogid=0ILV1&articleno=4211304&_bloghome_menu=recenttext#ajax_history_home

'etc...' 카테고리의 다른 글

[MSSQL] NTEXT 치환  (0) 2012.05.08
history, location  (0) 2012.04.17
jquery 한글 깨짐  (0) 2012.02.23
mysql 세션 kill  (0) 2012.02.23
Apache yum 설치  (0) 2011.11.29
2012. 5. 8. 06:19

자료에 , 가 들어간 자료를 cvs로 저장하여 데이터를 옮길일이 있어서 , 를 ^ 치환

 

새로운 DB에 자료 부어넣고 REPLACE를 하려니 NTEXT라면서 거절한다 ㄷㄷ

 

NVARCHAR(MAX)로 ALERT한 후

 

UPDATE  Table1
     SET Table1.board_content = B.board_content
     FROM Table1 A inner join

      (SELECT REPLACE(board_content,'^',',')as board_content, board_idx from Table1) B

     on A.board_idx = B.board_idx

같은 일로 삽질하는 일 없도록 일단 저장 ㄷㄷㄷㄷ

'etc...' 카테고리의 다른 글

MSSQL 날짜 기간 조회  (0) 2012.05.28
history, location  (0) 2012.04.17
jquery 한글 깨짐  (0) 2012.02.23
mysql 세션 kill  (0) 2012.02.23
Apache yum 설치  (0) 2011.11.29
2012. 4. 17. 02:58

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
// window.history.속성
// window.history.메서드()
// history.length 히스토리 목록 개수
// history.back() 이전페이지 이동
// history.forward() 다음페이지 이동
// history.go(숫자)  숫자값 만큼 페이지 이동(양수:앞으로, 음수:뒤로)
// window.location.속성
// location.protocol 웹사이트 프로토콜 확인
// hostname, port, host(hostname + port), pathname(문서경로)
// window.location.메서드()
// location.reload() 새로고침
// location.replace(주소) 이동  ( = location.href)
</script>
</head>
<body>
<input type="button" value="앞으로" onClick="history.forward()">
<input type="button" value="뒤로" onClick="history.back()">
<input type="button" value="뒤로2" onClick="history.go(-2)">
<br><br><br>
<input type="button" value="naver.com 이동"
onClick="location.href = 'http://pigcorn.blog.me'">
<input type="button" value="naver.com 이동"
onClick="location.replace('http://pigcorn.blog.me')">
<input type="button" value="Host" onClick="alert(location.host)">
</body>
</html>

 

[출처] http://blog.naver.com/pigcorn?Redirect=Log&logNo=120156144231

'etc...' 카테고리의 다른 글

MSSQL 날짜 기간 조회  (0) 2012.05.28
[MSSQL] NTEXT 치환  (0) 2012.05.08
jquery 한글 깨짐  (0) 2012.02.23
mysql 세션 kill  (0) 2012.02.23
Apache yum 설치  (0) 2011.11.29
2012. 2. 23. 03:57

$("formId").serialize().replace(/%/g,'%25')


위와 같이 써주고 받는 쪽에서는

URLDecoder.decode( request.getParameter(param), "UTF-8")

출처 http://blog.naver.com/mayajuni?Redirect=Log&logNo=40152060645 

'etc...' 카테고리의 다른 글

MSSQL 날짜 기간 조회  (0) 2012.05.28
[MSSQL] NTEXT 치환  (0) 2012.05.08
history, location  (0) 2012.04.17
mysql 세션 kill  (0) 2012.02.23
Apache yum 설치  (0) 2011.11.29
2012. 2. 23. 01:48
SHOW PROCESSLIST

KILL 1291

'etc...' 카테고리의 다른 글

MSSQL 날짜 기간 조회  (0) 2012.05.28
[MSSQL] NTEXT 치환  (0) 2012.05.08
history, location  (0) 2012.04.17
jquery 한글 깨짐  (0) 2012.02.23
Apache yum 설치  (0) 2011.11.29
2011. 11. 29. 20:07
# yum -y install httpd

# cd /ect/httpd/conf/httpd.conf

line 44 : ServerTokens OS -> ServerTokens Prod

line 74 : KeepAlive Off -> KeepAlive On

line 391 :  -> DirectoryIndex index.html index.jsp index.php index.cgi

line 524 : ServerSignature Off -> ServerSignature On

line 778 : 주석 삭제 -> AddHandler cgi-script .cgi .pl

저장

# /ect/rc.d/init.d/httpd start

# chkconfig httpd on

'etc...' 카테고리의 다른 글

MSSQL 날짜 기간 조회  (0) 2012.05.28
[MSSQL] NTEXT 치환  (0) 2012.05.08
history, location  (0) 2012.04.17
jquery 한글 깨짐  (0) 2012.02.23
mysql 세션 kill  (0) 2012.02.23
prev"" #1 next