select unix_timestamp('2012-07-30 20:54:12'); 返回1970-1-1 8:00:00开始到date所代表的时间为止的秒数; from_unixtime把时间戳转化成date;