use DATE
and CURDATE()
SELECT * FROM `table` WHERE DATE(`timestamp`) = CURDATE()
Warning! This query doesn’t use an index efficiently. For the more efficient solution see the answer below
More Related Contents:
- Group mysql query by 15 min intervals
- Calculating time difference between 2 dates in minutes
- When is a timestamp (auto) updated?
- SQL Query needed for fetch value from Two identical table but not fully identical table
- SQL select only rows with max value on a column [duplicate]
- How to create a MySQL hierarchical recursive query?
- How to reset AUTO_INCREMENT in MySQL
- MySQL Query GROUP BY day / month / year
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- Combining UNION and LIMIT operations in MySQL query
- MySQL comparison with null value
- MySQL Like multiple values
- Matching all values in IN clause
- INTERSECT in MySQL
- Search all columns of a table using a single where condition with single keyword in mysql
- What does SQL clause “GROUP BY 1” mean?
- Case statement in MySQL
- MySQL: Inner join vs Where [duplicate]
- Syntax error when using except in a query
- Selecting from two tables with inner join and limit [duplicate]
- Why the order of evaluation for expressions involving user variables is undefined?
- ALTER table – adding AUTOINCREMENT in MySQL
- sql like operator on integer
- MySQL – SELECT * INTO OUTFILE LOCAL ?
- How to SELECT by MAX(date)?
- The best way to remove value from SET field?
- MySQL OPTIMIZE all tables?
- Strip last two characters of a column in MySQL
- is there a length limit to group_concat or another reason why it would not work on a text field
- Deleting a row based on the max value