I have two fields on my table, lets say date_created and date_updated
I want to select 20 recently updated/created records
so it means i have to choose开发者_开发问答 the top dates from both fields, how do i do that?
found it!
greatest(field1,field2)
I have two fields on my table, lets say date_created and date_updated
I want to select 20 recently updated/created records
so it means i have to choose开发者_开发问答 the top dates from both fields, how do i do that?
found it!
greatest(field1,field2)
精彩评论