存储经典例题

运用储存发  传入一个日期   ,返回形式  xx年xx月xx日并返回

create  procedure   mys10 (in  date    datetime,out  time  varchar )

begin

     select   date_format(my,'%年%m月%d日')   into  time;

end $

call  mys10(now,@xx)$

select   @ xx   $

 

posted @ 2021-04-29 17:43  Dasn  阅读(48)  评论(0)    收藏  举报