--打包
--创建包
--步骤:
--1、声明(创建包头)
--2、创建数据对象(创建包体)--1、
create or replace package myPack
asv_bookCount integer;procedure p_back(v_stuid borrow.stuid%type,v_bid borrow.bid%type);function f_bookCount(v_stuid student.stuid%type)return integer;
end;--2、
create or replace package body myPack
asprocedure p_back(v_stuid borrow.stuid%type,v_bid borrow.bid%type)asbeginupdate borrow set b_time=to_date(to_char(sysdate,'yyyy-mm-dd'),'yyyy-mm-dd') where stuid=v_stuid and bid=v_bid;end p_back;function f_bookCount(v_stuid student.stuid%type)return integerasbeginselect count(*) into v_bookCount from borrow whereb_time is null and stuid=v_stuid;return v_bookCount;exceptionwhen others thenreturn 0;end f_bookCount;
end;

Oracle plsql 打包相关推荐

  1. 【转】oracle PLSQL基础学习

    [转]oracle PLSQL基础学习 --oracle 练习: /**************************************************PL/SQL编程基础****** ...

  2. mysql plsql循环语句吗,Oracle PLSQL 在游标中用while循环实例程序

    Oracle PLSQL 在游标中用while循环实例程序 Oracle PLSQL 在游标中用while循环实例程序 Oracle PLSQL 在游标中用while循环实例程序 declare cu ...

  3. lower() oracle,PLSQL LOWER用法及代码示例

    PLSQL LOWER函数用于将指定字符串中的所有字母都转换为小写.如果字符串中的字符不是字母,则不受此功能的影响. 要转换的char可以是任何数据类型,例如CHAR,VARCHAR2,NCHAR,N ...

  4. Oracle PLSQL 导出数据table xx contains one or more CLOB columns 解决方案

    Oracle PLSQL 导出数据table xx contains one or more CLOB columns 解决方案 参考文章: (1)Oracle PLSQL 导出数据table xx ...

  5. oracle中plsql块的结构,oracle plsql的结构

    变量声明部分(没有变量可以不写declare) begin 执行部分 exception 异常处理部分 end *:declare 和 exception部分是可选的 (1)PL/sql中变量的定义 ...

  6. oracle sum函数返回类型,Oracle / PLSQL SUM函数

    这个Oracle教程解释了如何使用Oracle / PLSQL SUM函数. SUM(x) 添加x中的所有值,并返回总和. SUM函数对一组行进行操作,并返回一行输出. Null值被SUM函数忽略.您 ...

  7. oracle提交数据按键,Oracle PLSQL - 仅提交数据库链接(Oracle PLSQL - Commit only database link)...

    Oracle PLSQL - 仅提交数据库链接(Oracle PLSQL - Commit only database link) 有没有办法只通过数据库链接而不是当前会话的数据提交在表上插入/更新的 ...

  8. Oracle/PLSQL Repeat Until Loop

    Oracle/PLSQL: Repeat Until Loop Oracle doesn't have a Repeat Until loop, but you can emulate one. Th ...

  9. Oracle/PLSQL Case Statement

    Oracle/PLSQL: Case Statement In Oracle 9i, you can use the case statement within an SQL statement. I ...

最新文章

  1. 数字签名和数字证书详解
  2. Rhel6.0升级内核到3.0.4
  3. linux IP、端口连通性测试
  4. Gartner:缺乏技术人才将影响企业数字化转型
  5. AOP框架Dora.Interception 3.0 [1]: 编程体验
  6. 4.dialog 工具
  7. 【总结】编程语言的分类
  8. 【一起学习输入法】华宇拼音输入法开源版本解析(5)
  9. 个人网站搭建时linux中的相关配置记录(mysql,jdk,nginx,redis)
  10. Github开源项目总结
  11. 技术篇(二)Demo示例——Bundle打包和加载
  12. 目标识别与跟踪算法matlab_极市直播| 朱政:基于孪生网络结构的SiamRPN系列目标跟踪算法...
  13. 记录一下3dmax--substancePainter-unity烘焙法线详细过程
  14. 获取CheckedListBox选中的项
  15. Warning: date() :It is not safe to rely on the system's timezone settings
  16. 看雪ctf 流浪者 WP
  17. 幼儿园EasyNVR能力层安防监控平台调用视频直播流报404错误解决方案
  18. Python中try 中有return,finally照样执行
  19. 深度学习实例第二部分:OpenCV
  20. 在Excel中根据条件查找匹配多个值

热门文章

  1. Redis(零):背景
  2. ubuntu下安装jdk
  3. maxcompute 2.0复杂数据类型之array
  4. node.js 爬虫入门总结
  5. 西南大学校园GIS平台
  6. 域内禁止不明东西连接DHCP
  7. Asp.net2.0水晶报表的一些示例源码
  8. 添加请求头 retrofit_RxJava 与 Retrofit 结合的最佳实践
  9. JDBC实现从Hive抽取数据导入Oracle
  10. linux版本fedora,技术|初级:如何更新 Fedora Linux 系统