我写了一个mysql查询
select * from user where registration_date="2016-05-20"
但它返回错误的值。请帮助我
最佳答案
使用
select * from user where date(registration_date)=date("2016-05-20")
关于mysql 日期时间字段匹配查询无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37340800/