• oracle的for和i++


    很长时间没用oracle的储存了,这次用到一次i++
    i++的sql语句:
    declare
    i_1 number(30) :=0;

    begin
    i_1 :=i_1+1;//i_1=1
    insert into test values(i_1);
    i_1 :=i_1+1;//i_1=2
    insert into test values(i_1);
    end;

    使用for循环:
    declare
    i_1 number(30) :=0;
    start_1 number(30) :=1;
    end_1 number(30) :=100;
    begin
    for i in start_1..end_1 loop
    i_1 :=i_1+1;
    end loop;
    end;
                      

                                              --朱星翰

  • 相关阅读:
    Html中常用的属性
    vue-页面回退
    vue-watch
    html
    Html-列表
    vue项目中px自动转换为rem
    vuex使用
    localStorage的使用
    slot
    模糊查询
  • 原文地址:https://www.cnblogs.com/yzssoft/p/6955294.html
Copyright © 2020-2023  润新知