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

2024-10-13 05:00:52

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..什么意思?怎么用

猜你喜欢