为空(NULL)字段 的不能使用 = <> 来判断必须使用 is null 或者 is not null
而且只有not null 的列可以建立索引(index)
虽然在php已经习惯了用时间戳来表示时间。但是在mysql 有了专门的类型表示时间为何还要用整形的字段来记录时间呢。
DATETIME
, DATE
, TIMESTAMP
http://dev.mysql.com/doc/refman/5.1/en/date-and-time-type-overview.html
这里还有很多操作时间的函数
http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html