爱玺玺

爱玺玺的生活日记本。wx:lb87626

sql 字段中的判断语句

mysql> select (case when 2>1 then 2 end) a from shop_goods_list where id=384;

+---+

| a |

+---+

| 2 |

+---+

1 row in set


发表评论:

Powered By Z-BlogPHP 1.4 Deeplue Build 150101

Copyright Your WebSite.Some Rights Reserved.

蜀ICP备11021721号-5