一、date型换int型 SELECT UNIX_TIMESTAMP(‘2017-9-22 13:54:45’)
二、int型转date型 SELECT FROM_UNIXTIME(1506059685)