Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想选择dateTimefield等于今天日期的记录。DBMS 是 MySQL。
dateTimefield
SELECT * FROM my_table WHERE DATE(dateTimefield) = CURRENT_DATE
SELECT * FROM tableName WHERE DATE_FORMAT(dateField,'%m-%d-%Y')=DATE_FORMAT(NOW(),'%m-%d-%Y');