C#时间(DateTime)在Mysql中存储的注意事项 C#的Datetime是包含3位毫秒数的,而Mysql的Datetime类型默认是不保留毫秒数的。 将mysql的datetime类型长度设为3即可datetime(3)