case结构

 方式一

 case     变量  表达式   字段

   when     要判断的值   then   返回的值

   else   返回的值

   end

方式二  

当作多重if使用

case  

when   判断的值  then  返回的值

else  返回的值

end

 

posted @ 2021-04-30 00:57  Dasn  阅读(313)  评论(0)    收藏  举报