PLSQL中,select case..when.. then..什么意思?怎么用

2025-05-09 11:01:06

case when ... then .. when .. then ... end

这种表达式,是sql的不同条件分支结果。

举例如下,

1、创建剞麽苍足数据表,create table test_student(stu_id number, class_id number);

PLSQL中,select case..when.. then..什么意思?怎么用

3、查询表中数据,select * fromtest_student ,

PLSQL中,select case..when.. then..什么意思?怎么用

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢