---
title: "orcl function base"
author: "vortexchoo"
date: "2013-07-08T11:15:58Z"
tags: []
categories: ["数据库"]
slug: "orcl-function-base"
draft: false
lastmod: "2013-07-08T11:15:58Z"
id: 1901250
url: "https://vortexchoo.iteye.com/blog/1901250"
---

function:
with args
create or replace function <functionName>(args dataType)
return  dataType
is
define ...,
returndata;
begin
//TODO
return returndata;
end ; 

no args
create or replace function <functionName>
return datatype
is
define ...,
returndata; 
begin
//TODO
return returndata;
end ;