Oracle笔记 十一、PL/SQL函数和触发器

前端之家收集整理的这篇文章主要介绍了Oracle笔记 十一、PL/SQL函数和触发器前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

<div id="codeSnippetWrapper"> <div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New',courier,monospace; direction: ltr; border-top-style: none; color: black; font-size: 10pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet">
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New',monospace; direction: ltr; border-top-style: none; color: black; font-size: 10pt; border-left-style: none; overflow: visible; padding-top: 0px">--创建函数

  replace  add_sal(sSal number)
 number


 (sSal > 5000) 
 sSal + 51;
 3000) 
 sSal + 111;

 sSal + 222;
 ;
;
 sal,add_sal(sal)  emp;
  deptLog(
 varchar2(20),

   可以触发多条,当你的语言影响多少条记录就会触发多少次
  replace  trig_dept2
 insert      dept2
 inserting 
 deptLog (,,sysdate);

,monospace; direction: ltr; border-top-style: none; color: black; font-size: 10pt; border-left-style: none; overflow: visible; padding-top: 0px">  elsif deleting 
,monospace; direction: ltr; border-top-style: none; color: black; font-size: 10pt; border-left-style: none; overflow: visible; padding-top: 0px">   ; 
 *  dept2;
 *  deptLog;
 dept2 (55,,);
 dept2  loc =   deptno (30);
 dept2  deptno = 55;
  replace  trig_emp
   dept   

 emp  emp.deptno =: .deptno  emp.deptno = :.deptno;
;
 dept  deptno = 11      deptno = 10;
 *  emp;
  replace  trg_ins_dept2
 insert
 dept2
   ()       
修改该表!');
 ;
  tgr_Name disable | enable;
  tableName disable   | enable  ;
原文链接:https://www.f2er.com/oracle/72810.html

猜你在找的Oracle相关文章