阅读背景:

Mysql如何在数据库中将时间数据类型设置为只有HH:MM

来源:互联网 

how can I set my mysql database field "time" data type to only be HH:MM in the database, in my script the user only enters HH:MM and the DB automatically adds the last :SS digits, the problem is when I pull that value to edit, it adds the last digits also, which is kind of annoying, I can get rid of it with PHP and truncating off the end, but I was hoping for a way to set it in the DB to remove those last 2 SS digits for good.how can I set my mysql database field "time" da




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

分享到: