@bhamby is true. If you leave microseconds outside your timestamp value, your request will only match at usagetime 2012-09-03 08: 03: 06.000000
If you do not have the full timestamp value taken from the previous query, you can specify a range predicate that will correspond to any microsecond value during this time:
...WHERE id = 1 AND usagetime BETWEEN '2012-09-03 08:03:06' AND '2012-09-03 08:03:07'
or
...WHERE id = 1 AND usagetime >= '2012-09-03 08:03:06'
AND usagetime < '2012-09-03 08:03:07'
source
share