阅读背景:

在没有秒的情况下在MySQL中使用Time数据类型

来源:互联网 

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?I'm trying to store a 12/24hr (ie; 00:00) clock




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: