标签: mysql stored-procedures stored-functions sql-timestamp
我要从日期生成时间戳
set @inputDate = '2016-04-21'; select timestamp(@inputDate) from dual;
结果是:
2016-04-21 00:00:00