select unix_timestamp('2018-01-01','yyyy-MM-dd') from table_name 将2018-01-01转成时间戳,yyyy-MM-dd对应2018-01-01的格式