会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
a56爆大奖在线娱乐的博客
a56爆大奖在线娱乐的园子
账号设置
简洁模式
...
退出登录
注册
登录
bruce_he
博客园
首页
新随笔
管理
2023年6月18日
mysql -- 根据变量a的不同值设置变量b(case when + set)
摘要: 需求: 根据 变量 @period_endtime 的不同值,设置相对应的 @end_type @period_endtime @end_type 0331 1 0630 2 0930 3 1231 4 实现: set @i_period = '20230331'; SET @period_endt
阅读全文
posted @ 2023-06-18 15:48 bruce_he
阅读(25)
评论(0)
推荐(0)
编辑