随笔分类 -  mysql

摘要:1 mysql的日期时间类型: date, time, datetime, timestamp;2 示例:drop table t;create table test.t (a date, b time , c datetime DEFAULT '2012-01-01', d timestamp N 阅读全文
posted @ 2017-10-20 22:35 苍山雪洱海月 阅读(1553) 评论(0) 推荐(0)
摘要:MySQL:MySQL日期数据类型、MySQL时间类型使用总结 MySQL 日期类型:日期格式、所占存储空间、日期范围 比较。 日期类型 存储空间 日期格式 日期范围 datetime 8 bytes YYYY-MM-DD HH:MM:SS 1000-01-01 00:00:00 ~ 9999-12 阅读全文
posted @ 2017-10-20 22:34 苍山雪洱海月 阅读(695) 评论(0) 推荐(0)