Comparing results with today's date?

前端 未结 10 1727
情深已故
情深已故 2020-12-08 09:15

Is there a way to use the Now() function in SQL to select values with today\'s date?

I was under the impression Now() would contain the ti

10条回答
  •  孤街浪徒
    2020-12-08 09:35

    You can try this sql code;

       SELECT [column_1], [column_1], ...    
        FROM (your_table)
         where date_format(record_date, '%e%c%Y') = date_format(now(), '%e%c%Y') 
    

提交回复
热议问题