1,

For example, the first date is COleDateTime m_d1, a second date is COleDateTime m_d2, how to query all the data in the two periods, m_d1, m_d2 are variable, how to said it in the SQL statement
2,

A value with an int variable m_num said
Here is how to use the SQL statement said is greater than the value of the variable A