zoukankan      html  css  js  c++  java
  • 条件控制(if ) ( case)

    一:IF应用格式

    (1)                  (2)                (3)

    IF 条件 THEN           IF 条件 THEN            IF 条件1 THEN

      --代码块                     --代码块                 --代码块1

      commit;              commit;                commit;

      dbms_output.put_line();      dbms_output.put_line();       dbms_output.put_line();

    ENDIF;                 ELSE                ELSIF 条件2 THEN

                        dbms_output.put_line();          --代码块2

                        ENDIF;               ELSE

                                            dbms_output.put_line();

                                              ENDIF;

    二:case应用格式

    (1)  只可用在等值情况

    case 列名

      when 值 then

        --(定义变量 提示的 值)

      when 值 then

        --(定义变量 提示的 值)

            ……

        end case;

      dbms_output.put_line(定义变量);

    (2):可用在等值情况  和 不等着情况

    case 列名

      when 列名=值 then

        --(定义变量 提示的 值)

      when 列名=值 then

        --(定义变量 提示的 值)

            ……

        end case;

      dbms_output.put_line(定义变量);

  • 相关阅读:
    sae-xhprof调试性能
    VC++常用函数
    C++资料收集&整理
    C++宽窄字符串转换
    #MySQL for Python(MySQLdb) Note
    VC++ ADO相关
    MFC各种控件的常见操作(逐步添加中......)
    关于Sql注入的那些事
    Python中socket经ssl加密后server开多线程
    网络编程
  • 原文地址:https://www.cnblogs.com/futao123/p/4437419.html
Copyright © 2011-2022 走看看