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 -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -