函数
来源:互联网 发布:网络教育 入学考试 编辑:程序博客网 时间:2024/06/05 00:42
--创建函数
create or replace function 函数名( 传入参数... 类型 ) return 类型 is
v_name number; --定义个变量begin
select count(1)
into v_name
from table_name ts
where 传入参数 = ts.goods_name;
if v_name > 0 then
v_name :=60;
else
v_name :=0;
end if;
return v_name ;
end 函数名;
/
--删除函数
Drop function 函数名;
1 0
- 函数
- 函数
- 函数
- 函数
- 函数
- 函数
- 函数
- 函数
- 函数
- 函数
- 函数
- 函数
- 函数
- 函数
- 函数
- 函数
- 函数
- 函数
- Android判断当前系统使用的语言
- [leetcode] 422. Valid Word Square 解题报告
- 复习iOS动画-Transaction
- android jni学习
- socketpair理解
- 函数
- php中inclued、include_once和require、require_once
- 获取系统版本
- Oracle如何把数据库表迁移到指定表空间
- Java之CountDownLatch使用
- Hadoop的单机模式、伪分布式模式和完全分布式模式
- linux: 几个常用makefile模板
- C++ multimap的简单使用
- postgresql 安装体验