use*_*165 2 mysql sql select datetime date
What is the proper way to query all data on current date? a function in mysql that will get the current date in 12:01 am and current date 11:59 pm
select * from tb_data where date between currentdate_starts and currentdate_ends
小智 5
Without using DATE(column) = CURDATE()   
   SELECT * FROM tb_data WHERE date between concat(curdate(),' ','00:00:00') AND concat(curdate(),' ','23:59:59')
| 归档时间: | 
 | 
| 查看次数: | 1332 次 | 
| 最近记录: |