两个Oracle创建存储过程的例子——在命令窗口中
来源:互联网 发布:恢复软件finaldata 编辑:程序博客网 时间:2024/06/05 17:57
--创建一张表
drop table mytest;
create table mytest(name varchar2(30),password varchar2(30));
--创建存储过程向mytest表中插入记录
create or replace procedure sp_pro1 is
begin
--执行部分
insert into mytest(name,password) values('韩顺平','m1234');
end;
/
--执行该存储过程
exec sp_pro1;
--创建一个删除表中记录的存储过程
--编写一个存储过程,删除表中记录
create or replace procedure sp_pro2 is
begin
--执行部分
delete from mytest where name='韩顺平';
end;
/
exec sp_pro2;
drop table mytest;
create table mytest(name varchar2(30),password varchar2(30));
--创建存储过程向mytest表中插入记录
create or replace procedure sp_pro1 is
begin
--执行部分
insert into mytest(name,password) values('韩顺平','m1234');
end;
/
--执行该存储过程
exec sp_pro1;
--创建一个删除表中记录的存储过程
--编写一个存储过程,删除表中记录
create or replace procedure sp_pro2 is
begin
--执行部分
delete from mytest where name='韩顺平';
end;
/
exec sp_pro2;
- 两个Oracle创建存储过程的例子——在命令窗口中
- 在命令窗口下编写Oracle存储过程并执行的简单例子
- oracle 创建存储过程例子
- Oracle 编写存储过程,在pl/sql中调用编写好的存储过程例子
- oracle创建存储过程和函数的简单例子
- 如何在oracle存储过程中返回游标----例子一
- 如何在oracle存储过程中返回游标----例子二
- oracle 存储过程的例子
- 三层架构——存储过程(在ADO.net中调用存储过程)例子
- 黑窗口中创建mysql存储过程时的问题
- 在ORACLE存储过程中创建临时表
- 如何创建oracle存储过程及在jsp中调用
- 在ORACLE存储过程中创建临时表
- 在ORACLE存储过程中创建临时表
- 在ORACLE存储过程中创建临时表
- 在oracle存储过程中创建临时表
- 在ORACLE存储过程中创建临时表
- [VB.NET]在VB.NET 2005中,如何创建Oracle的存储过程,以及如何来使用存储过程语句?
- Android学习资源总结
- 8051异步串口的收发原理
- 百度地图覆盖物
- (vs2005)初学时候出现的错误:fatal error C1083
- openSuSE11.1安装oracle11g步骤
- 两个Oracle创建存储过程的例子——在命令窗口中
- UBUNTU的自动登录
- Oracle pl/sql块
- sql数据类型详解
- 3G应用开发之Android 传智播客 基础知识总结
- VI
- CSS笔记
- Lua环境搭建之使用EditPlus搭建Lua开发环境
- 如何实现 linux 在 命令行模式(init 3)状态下不用输入用户名自动登陆