CString sTime;
sTime = currentTime.Format("%Y-%m-%d %H:%M:%S");
sSQL.Format("SELECT * FROM clip2 WHERE starttime<=#%s#",sTime);