How can I compare two DateTime fields in MySQL? -


you can read question in title. let's table have datetime field "2015-12-01 00:00:00" , table b "2014-12-01 00:00:00".

i want data row table has bigger datetime.

something "datetime(a.datetime) > datetime(b.datetime)" isn't working.

help me.

when comparing 2 datetimes interpreted timestamps, doing a.datetime > b.datetime should work fine.


Comments

Popular posts from this blog

php - Extract Text from HTTP referer -

Receive udp packets in android gstreamer -

authentication - ASP.NET Core 1.0. Bearer Token, cannot access custom claims -