mysql存储过程-回到两个时间的最大最小值

mysql存储过程--返回两个时间的最大最小值返回较大值create function smalldate(first date, last date )

mysql存储过程--返回两个时间的最大最小值
返回较大值

create function smalldate(first date, last date ) returns datebegin declare datetemp date;set datetemp = last;if first < last thenset datetemp = first;end if;return datetemp;end