自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Oracle存儲(chǔ)過程的創(chuàng)建

數(shù)據(jù)庫(kù) Oracle
本文主要介紹的是Oracle存儲(chǔ)過程中的一些項(xiàng)目的介紹,其中包括Oracle儲(chǔ)存過程的創(chuàng)建,以及判斷語句等相關(guān)內(nèi)容的描述。

本人是Oracle 的熱捧者,以下的相關(guān)內(nèi)容主要是我個(gè)人對(duì)于Oracle存儲(chǔ)過程的一個(gè)總結(jié),其中包括儲(chǔ)存過程的創(chuàng)建,以及變量賦值的實(shí)際應(yīng)用,以下就是文章的具體內(nèi)容的描述,希望你會(huì)有所收獲。

1、創(chuàng)建存儲(chǔ)過程

 

  1. create or replace procedure test
    (var_name_1 in type,var_name_2 out type) as  

聲明變量(變量名 變量類型)

 

  1. begin  

Oracle存儲(chǔ)過程的執(zhí)行體

 

  1. end test;  

打印出輸入的時(shí)間信息

 

  1. E.g:   
  2. create or replace procedure test(workDate in Date) is   
  3. begin   
  4. dbms_output.putline('The input date is:'
    ||to_date(workDate,'yyyy-mm-dd'));   
  5. end test;   

 

2、變量賦值

變量名 := 值;

 

  1. E.g:   
  2. create or replace procedure test(workDate in Date) is   
  3. x number(4,2);   
  4. begin   
  5. :1;   
  6. end test;   

 

3、判斷語句

if 比較式 then begin end; end if;

 

  1. E.g   
  2. create or replace procedure test(x in number) is   
  3. begin   
  4. if x >0 then   
  5. begin   
  6. :0 - x;   
  7. end;   
  8. end if;   
  9. if x = 0 then   
  10. begin   
  11. x: = 1;   
  12. end;   
  13. end if;   
  14. end test;   

上述的相關(guān)內(nèi)容就是對(duì)Oracle存儲(chǔ)過程總結(jié)的描述,希望會(huì)給你帶來一些幫助在此方面。

【編輯推薦】

  1. 用觸發(fā)器實(shí)現(xiàn)Oracle操作日志
  2. Oracle數(shù)據(jù)庫(kù)中經(jīng)常使用的啟動(dòng)方式介紹
  3. Oracle數(shù)據(jù)庫(kù)中3種常用的關(guān)閉方式
  4. Oracle11g認(rèn)證考試的3個(gè)主要途徑
  5. Oracle SQL的優(yōu)化的規(guī)則描述

 

責(zé)任編輯:佚名 來源: 博客園
相關(guān)推薦

2010-10-29 16:17:55

Oracle存儲(chǔ)過程

2010-11-29 11:27:08

oracle創(chuàng)建存儲(chǔ)過

2010-05-05 09:18:53

Oracle創(chuàng)建存儲(chǔ)過

2010-04-15 17:45:26

Oracle存儲(chǔ)過程

2010-04-21 10:37:02

Oracle創(chuàng)建

2010-04-23 11:15:43

Oracle創(chuàng)建

2010-10-29 16:33:45

ORACLE存儲(chǔ)過程

2010-10-28 13:53:13

ORACLE存儲(chǔ)過程

2010-04-21 17:19:29

Oracle創(chuàng)建

2010-11-19 09:48:48

ORACLE創(chuàng)建實(shí)例

2010-04-07 13:12:25

Oracle存儲(chǔ)過程

2010-04-16 12:58:48

Oracle sql

2010-04-07 12:08:28

Oracle存儲(chǔ)過程

2010-04-15 17:31:10

Oracle存儲(chǔ)過程

2010-10-29 16:06:55

Oracle存儲(chǔ)過程

2018-10-12 11:26:13

oracle存儲(chǔ)語法

2010-04-08 16:41:29

Oracle存儲(chǔ)過程

2010-11-16 14:30:32

Oracle存儲(chǔ)過程

2018-08-28 11:40:47

存儲(chǔ)過程語法

2010-04-08 18:10:37

Oracle存儲(chǔ)過程
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)