mysql - Search by month and day mqsql -


i have table messages column date (format datetime) how can search messages date = xxxx-05-09 ?

select * messages date = 'xxxx-05-09'; 

try this:

 select * messages extract(month date) = 5 , extract(day date) = 9; 

Comments

Popular posts from this blog

c# - Class in a list -

mysql - Django database model for my website -

ios - How to run a segue on itself OR another viewController -