日期:2014-05-16 浏览次数:22520 次
create function bigdate(first date, last date ) returns date begin declare datetemp date; set datetemp = last; if first > last then set datetemp = first; end if; return datetemp; end
create function smalldate(first date, last date ) returns date begin declare datetemp date; set datetemp = last; if first < last then set datetemp = first; end if; return datetemp; end