标签:
错误示例:
//sql.Append(" LEFT JOIN (SELECT COUNT(1) AS QTY , R.FRAMENO FROM RT_REPAIR R WHERE CURRENT DATE -DATE(R.STATUSCODEDATE10) <=365 AND STATUSCODE=‘99‘ GROUP BY R.FRAMENO) T10 ON T1.FRAMENO = T10.FRAMENO ");
sql.Append(" LEFT JOIN (SELECT COUNT(1) AS QTY , R.FRAMENO FROM RT_REPAIR R WHERE (DAYS(CURRENT DATE) -DAYS(R.STATUSCODEDATE10)) <=365 AND STATUSCODE=‘99‘ GROUP BY R.FRAMENO) T10 ON T1.FRAMENO = T10.FRAMENO ");
标签:
原文地址:http://www.cnblogs.com/ShaYeBlog/p/5407716.html