Using Time datatype in MySQL without seconds

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2010-06-12T02:05:06Z Indexed on 2010/06/12 2:12 UTC
Read the original article Hit count: 210

Filed under:
|
|

I'm trying to store a 12/24hr (ie; 00:00) clock time in a MySQL database. At the moment I am using the time datatype. This works ok but it insists on adding the seconds to the column. So you enter 09:20 and it is stored as 09:20:00. Is there any way I can limit it in MySQL to just 00:00?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about time