如何在MySQL中將當前日期與給定日期進行比較我正在使用類似於該代碼的方法,但它不起作用。如何將當前日期與MySQL中的給定日期進行比較
<%
rs=st.executeQuery("select approcode,approemail,appromon,approvemon,approtue,approvetue,approwed,approvewed,approthr,approvethr,approfri,approvefri,approsat,approvesat,commen,months,SUM(nol) from `pushkalit`.`approval`WHERE (CONVERT(`approcode` USING utf8) LIKE '%"+user+"%') AND appromon=DATE(now()) OR approtue=DATE(now()) OR approwed=DATE(now()) ");
// i have given in mysql, appromon varchar(30).....so on dateformat have dd/MM/yyyy
%>
看看答案請... – jmail