I just find mysql can query datetime using like:
like \'2013-06-12%\'
I think it can not use the index. I Google it, but can not find such subj
One alternative for such cases is to do something like this:
SELECT * FROM subscription t WHERE t.active_time BETWEEN '2013-06-30 00:00:00' AND '2013-06-30 23:59:59';
In the end you get all events from that day.