当前位置:网站首页>pl/sql 创建并执行oralce存储过程,并返回结果集
pl/sql 创建并执行oralce存储过程,并返回结果集
2022-07-25 14:58:00 【Kimizhou_blog】
因为以前一直用sql server多,现在一下子用oracle ,工具什么都不熟,局限于sql server的思想
网上搜,和问朋友,跟我讲了一大堆,什么loop 啊,decalre啊,package啊,什么命令窗口啊,什么 sql plus啊,什么不支持pl/sql啊.耽误了好几个小时..完全都是在误导人,其实什么都不需要。
只需要定义一个结果集,把东西存到结果集中就结束(这个结果集叫做游标),先创建存储过程:
create or replace procedure Demo(data out sys_refcursor) is
begin
open data for select * from gsminfo;
end Demo;然后直接执行就OK ,执行的方法如下:
找到存储过程,右键,选择测试:

然后出现的页面,再选择点击运行:

然后直接看结果集就可以了,注意了,oracle pl/sql这个工具,存储过程的结果集做的很不人性化,比起sql server差了很多,结果集在一个很隐蔽的地方,如图所示,点开即可


边栏推荐
- QObject源码剖析-d指针和q指针
- "How to use" decorator mode
- 微信公众号正式环境上线部署,第三方公众平台接入
- 44 Sina navigation, Xiaomi sidebar exercise
- Splice a field of the list set into a single string
- Filters get the data in data; Filters use data in data
- Number of high-quality number pairs [bit operation characteristics + abstract ability evaluation + grouping fast statistics]
- 27 classification of selectors
- SSH服务器拒绝了密码
- Content type corresponding to office file
猜你喜欢

37 元素模式(行内元素,块元素,行内块元素)

39 simple version of millet sidebar exercise

Leetcode-198- house raiding
![[eloquence] negotiation persuasion skills and Strategies](/img/01/0fcbbfcf35a6d166c14ba4215eacac.jpg)
[eloquence] negotiation persuasion skills and Strategies

Realsense ROS installation configuration introduction and problem solving

Resource not found: rgbd_ Launch solution

51单片机学习笔记(2)

06、类神经网络

51单片机学习笔记(1)

Gameframework making games (I)
随机推荐
EDA chip design solution based on AMD epyc server
[C topic] force buckle 876. Intermediate node of linked list
41 图片背景综合-五彩导航图
Deng Qinglin, a technical expert of Alibaba cloud: Best Practices for disaster recovery and remote multi activity across availability zones on cloud
Several methods of spark parameter configuration
"Ask every day" reentrantlock locks and unlocks
Melody + realsense d435i configuration and error resolution
English grammar_ Indefinite pronoun - other / other
[C题目]力扣206. 反转链表
基于AMD EPYC服务器的EDA芯片设计解决方案
Yes, UDP protocol can also be used to request DNS server
"How to use" observer mode
44 新浪导航 ,小米边栏 练习
27 选择器的分类
Reprint ---- how to read the code?
物理量与单位符号的书写标准
直播课堂系统05-后台管理系统
Niuke multi school E G J L
Application practice: Great integrator of the paddy classification model [paddlehub, finetune, prompt]
D2. picking carrots (hard version) (one question per day)