资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

oracle游标怎么删掉 matepadpro天马屏

oracle 游标检索删除

select groupid

创新互联专注为客户提供全方位的互联网综合服务,包含不限于网站建设、做网站、绥江网络推广、微信小程序、绥江网络营销、绥江企业策划、绥江品牌公关、搜索引擎seo、人物专访、企业宣传片、企业代运营等,从售前售中售后,我们都将竭诚为您服务,您的肯定,是我们最大的嘉奖;创新互联为所有大学生创业者提供绥江建站搭建服务,24小时服务热线:18982081108,官方网址:www.cdcxhl.com

from group

start with groupid = pgroupid

connected by groupid=parentgroupid;

这一句会给你找出树形结构所有的子分支的groupid集合

你可以接在delete后面

比如:

delete from group

where groupid in (......) ;

commit;

oracle如何关闭游标?

1. 用open打开的,用close关闭\x0d\x0adeclare\x0d\x0acursor mycursor is\x0d\x0aselect * from emp for update;\x0d\x0amyrecord emp%rowtype;\x0d\x0abegin\x0d\x0aopen mycursor;\x0d\x0aloop\x0d\x0afetch mycursor into myrecord;\x0d\x0aexit when mycursor%notfound;\x0d\x0aif (myrecord.sal=2000) then\x0d\x0aupdate emp\x0d\x0aset sal=2001\x0d\x0awhere current of mycursor;\x0d\x0aend if;\x0d\x0aend loop;\x0d\x0aclose mycursor;\x0d\x0acommit;\x0d\x0aend;\x0d\x0a2. 用for 循环的,循环完了就自己关了\x0d\x0adeclare\x0d\x0acursor mycursor is\x0d\x0aselect * from emp;\x0d\x0abegin\x0d\x0afor i in mycursor\x0d\x0aloop\x0d\x0adbms_output.put_line(i.job);\x0d\x0aend loop;\x0d\x0aend;

oracle数据库如何删除游标

使用游标进行操作,包括这么几个步骤:

定义游标,打开游标,提取数据和关闭游标这么几步,所以游标不存在删除这么一说,关闭即可


文章标题:oracle游标怎么删掉 matepadpro天马屏
转载注明:http://cdkjz.cn/article/hgpeph.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220