데이빗의 도스 게임 자료실

한국어

Game Dev

C++

 char szDateFrom[256];
 char szDateTo[256];
 BYTE btDateAll;
 sprintf_s(szDateFrom, "%4d-%02d-%02d", tmStart.GetYear(), tmStart.GetMonth(), tmStart.GetDay());
 sprintf_s(szDateTo, "%4d-%02d-%02d", tmEnd.GetYear(), tmEnd.GetMonth(), tmEnd.GetDay());
 

SQL

 

 SELECT COUNT(*) FROM WT_purchase
 WHERE  market = @iMarket AND item = @iItem AND [date] between CAST(@szDateFrom as datetime ) and CAST(@szDateTo as datetime )+1

 

 

 

SELECT CONVERT (DATE, '2014-12-16')
           , CONVERT (DATE, '2014/12/16')
           , CONVERT (DATE, '20141216')
           , CONVERT (DATETIME, '2014-12-16')
           , CONVERT (DATETIME, '2014-12-16 15:10:01')

--결과 1 : 2014-12-16
--결과 2 : 2014-12-16
--결과 3 : 2014-12-16
--결과 4 : 2014-12-16 00:00:00.000
--결과 5 : 2014-12-16 15:10:01.000

조회 수 :
18563
등록일 :
2016.01.21
15:50:59 (*.82.136.57)
엮인글 :
게시글 주소 :
http://dosgame.yyartsworld.pe.kr/developer/30699
사진 및 파일 첨부

여기에 파일을 끌어 놓거나 왼쪽의 버튼을 클릭하세요.

파일 용량 제한 : 0MB (허용 확장자 : *.*)

0개 첨부 됨 ( / )
옵션 :
:
:
:
:
List of Articles
번호 제목 글쓴이 조회 수sort 추천 수 비추천 수 날짜
48 Can't find file for asset. /Script/SteamVR 관리자 115334     2017-06-14
 
47 Reflection vector file 관리자 113641     2019-02-28
 
46 UE4 Engine build 전 수정해야 할것 관리자 76792     2017-07-07
 
45 UE4 How to deploy my app on IOS device without paying the $99 Apple developer program. 관리자 65131     2018-06-23
 
44 UE4 error : Expected EOBProjectileManager.h to be first header included. 관리자 57955     2017-09-29
 
43 Unreal Engine 4 Devs, How to get rid of the black borders in mirror mode. 관리자 52186     2017-04-20
 
42 Visual C++ - Object file created with an older compiler than other objects 관리자 49980     2018-05-31
 
41 UE4 stat 관리자 49064     2017-12-22
 
40 C++ printf() 64bit int, hex 관리자 48653     2018-06-12
 
39 UE4 VR Resolution Setting 관리자 48001     2017-12-22
 
38 MYSQL ODBC Set Max Connection 관리자 37093     2021-10-05
 
37 MSSQL 한글이나 한자가 ???로 나타날때 관리자 34188     2015-06-04
 
36 JNI GetMethodID, GetStaticMethodID signature example 관리자 34158     2018-06-12
 
35 MSSQL 성능 향상을 위한 query 작성과 tuning 관리자 33114     2017-12-12
 
34 Windows C++ Mac Address 구하기 관리자 31063     2018-04-20
 
33 Could not determine java version from '12.0.1' 관리자 27578     2021-07-16
 
32 map을 deque에 일괄 삽입 std::copy std::transform std::back_inserter 관리자 22741     2018-05-03
 
31 Provisioning Profile location 관리자 21296     2018-07-10
 
30 UE4 MacOS Generate Xcode Project 안될때 관리자 21086     2020-08-27
 
» MSSQL 날자 문자열을 datetime으로 변환 관리자 18563     2016-01-21
C++ char szDateFrom[256]; char szDateTo[256]; BYTE btDateAll; sprintf_s(szDateFrom, "%4d-%02d-%02d", tmStart.GetYear(), tmStart.GetMonth(), tmStart.GetDay()); sprintf_s(szDateTo, "%4d-%02d-%02d", tmEnd.GetYear(), tmEnd.GetMonth(), tmEnd.GetD...