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

authentication - Mongodb revoke acccess to connect test database -

c - getting error: cannot take the address of an rvalue of type 'int' -

How to merge four videos on one screen with ffmpeg -