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
Post a Comment