例如查97年10月2日到98年10月2日的满足另一个字段(比如为"34")的记录数
怎么查

解决方案 »

  1.   

    根据要求拼写一个SQL语句,然后执行就可以了
      

  2.   

    我不知道怎么写呀
    怎么和CRecordset类联系呀
      

  3.   

    我不太明白你的意思看这个行不行Select * from xxx_table group by xx_date where xx_date >= '971002' and where xx_date <= '981002' and xxx = '34'
      

  4.   

    CRecordset recordset;
    CString strSQL;// 里面是你的sql语句 
    recordset.Open( AFX_DB_USE_DEFAULT_TYPE, strSQL );