首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Mysql >

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

2012-09-27 
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

热点排行