我试图让以下最后两个查询工作,但我只能让第一个工作。
querystream << "select Date, C"<<m_ID<<" from Data" <<nTable <<";";
querystream << "select Date, C"<<m_ID<<" from Data" <<nTable <<" where Date >= #DateAdd (\"yyyy\", -1, Now())# ORDER by DATE ASC;";
querystream << "select Date, C"<<m_ID<<" from Data" <<nTable <<" where Date >= #DateAdd (\"yyyy\", -1, #10/09/2012 09:12#)# ORDER by DATE ASC;";
如果你们有任何想法,我将非常感激,谢谢,詹姆斯