有时需要将日期类型值转换成毫秒值,有时也要将毫秒值转换成日期,为了更方便,满足查询的需要. 现在,新建一张数据库表t_stu_info,并向表里插入数据 use test; show tables; create table t_stu_info( id int not null primary key, stu_name varchar(20), stu_date timestamp, stu_age int(3), stu_sex varchar(5) ); insert into t_st