4,012
社区成员
发帖
与我相关
我的任务
分享
CString strFilter;
CString s1 = m_tDate1.Format( "%Y/%m/%d %H:%M:%S" );
CString s2 = m_tDate2.Format( "%Y/%m/%d %H:%M:%S" );
str.Format("SELECT * FROM TableName WHERE Order=%d and Date>='%s' and Date<='%s'",m_nOrder,s1,s2);