I have a column called "updatetime" which is a timestamp ("2011-02-01 09:00:51"). To achieve performance, I need to create an indexed column "updatetime_hour" depending on the timestamp hour.
So, for example, if "updatetime" was "2011-02-01 09:00:51", then "updatetime_hour" would be "9".
I am trying to do all this in mysql, although PHP is also an option. 60k + existing lines.
Thoughts?
themerlinproject
source share