Oracle数据库学习心得(三)

2五、SQL分支判断:case表达式,既能够作等值判断也能够作比较判断 (1)等值判断 case 表达式 when 值1 then 返回值1 when 值2 then 返回值2 …… [else 默认返回值(省略默认就是返回null)] end (2)比较判断 case when 条件表达式1 then 返回值1 when 条件表达式2 then 返回值2 …… [else 默认返回值] end
相关文章
相关标签/搜索