开发者

MySQL date and hour issue

I have read that MySQL has some issues regarding date type. I want to get a date interval taking into account the hour. My question is can I do a between query, or make a colum开发者_JAVA技巧n for the hour as well?

P.S:

select * from main where main.date between 01-06-11 07:59 and 01-06-11 15:59

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜