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)
'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 |
자료에 , 가 들어간 자료를 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 |
<!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 |
$("formId").serialize().replace(/%/g,'%25')
위와 같이 써주고 받는 쪽에서는
URLDecoder.decode( request.getParameter(param), "UTF-8")
출처 http://blog.naver.com/mayajuni?Redirect=Log&logNo=40152060645
[출처] [jquery] ajax serialize 보낼시 한글 꺠짐 현상 |작성자 동준
'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 |
'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 |
# 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 |



