I detect a problem in my database about length column. So I have a database in phpmyadmin in a mac and I import it to a database in phpmyadmin in windows machine.
So, I have a column named startHour
and it's a varchar(5)
, and from form the value is 10:30:00
with 8 length but in mac it inserts 10:30
and in windows it returns error:
String data, right truncated: 1406 Data too long for column 'startHour'
How can I solve that? Should be an option in second database?
I know that if I send 8 characters the field should has 8 but I don't need that in database but I want to show the seconds to user.
Thank you