SQL判断语句(case when,if)


目的:将班级为‘04921601’的班级名修改为‘11111111’

1.case when

  • 第一种方法
    SQL判断语句(case when,if,ifnulll)

  • 第二种方法
    SQL判断语句(case when,if,ifnulll)

2.if

IF(exp1,exp2,exp3)
exp1-判断条件
exp2-条件为真时的结果
exp3-条件为假时的结果
SQL判断语句(case when,if,ifnulll)

相关文章:

  • 2021-07-08
  • 2022-12-23
  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2022-01-27
相关资源
相似解决方案