摘要:
一.mysql数据库中的date1.DATETIME和DATE:DATETIME占用8个字节,日期范围为"1000-01-01 00:00:00"到"9999-12-31 23:59:59" DATE占用3个字节,日期范围为"1000-01-01"到"9999-12-31"mysql的CAST函数在强制转换到DATETIME时会保留到微秒数,不过在插入后同样会截断.e.g.select cast('2013-02-11 00:22:33' as datetime) D\G************** 阅读全文