摘要: --PLSQL 动态游标 分别拿出emp、dept表中所有的数据 declare c1 sys_refcursor;--声明一个动态游标 e emp%rowtype;--声明一个emp表的行记录数据类型 d dept%rowtype;--声明一个dept表的行记录数据类型 begin open c1 阅读全文
posted @ 2021-09-02 12:06 Rkey 阅读(6) 评论(0) 推荐(0) 编辑
摘要: --使用sql实现累计累加--原表数据select * from t; --PLAN A(使用分析函数,又叫窗口函数) select id1 ,sum(cl)over(order by id1) as cl_sum from t; --PLAN B(使用原生语法实现累计累加) /* 思路:自连接一下 阅读全文
posted @ 2021-09-02 11:46 Rkey 阅读(77) 评论(0) 推荐(0) 编辑
摘要: -设置>首选项>键配置>找到 [ 编辑/选择/注释(o) ] 阅读全文
posted @ 2021-03-12 09:20 Rkey 阅读(1026) 评论(0) 推荐(0) 编辑