关于SQL语句 between and
ewr03 2011-12-21 07:15:53 SQL.Format("SELECT * FROM zhichu WHERE date between'%s'and'%s '",m_date,mdate2);
m_ado.m_pRecordset = m_ado.m_pConnection->Execute ((_bstr_t)SQL,NULL,adCmdText);
m_date,m_date2是MFC的两个编辑框
为什么不好使啊求解
PS:
SQL.Format("SELECT * FROM shouru WHERE date like '%s'", m_date2);
这个已经通过了 查的很准