当前位置: 首页 > news >正文

备份核验单时网站域名怎么成为百度推广代理商

备份核验单时网站域名,怎么成为百度推广代理商,有api接口怎么做网站,湘潭做网站选择磐石网络文章目录 背景集合类型可变数组可变数组示例 背景 在信创适配中,从Oracle迁移过来的存储过程使用到可变数组。因此在LightDB-X 23.4版本中对现有的集合类型进行了增强,添加了可变数组类型。 集合类型 在LightDB-X 23.4版本开始plorasql支持的集合类型…

文章目录

  • 背景
  • 集合类型
  • 可变数组
  • 可变数组示例

背景

在信创适配中,从Oracle迁移过来的存储过程使用到可变数组。因此在LightDB-X 23.4版本中对现有的集合类型进行了增强,添加了可变数组类型。

集合类型

在LightDB-X 23.4版本开始plorasql支持的集合类型同Oracle一致,覆盖了关联数组,可变数组和嵌套表三种类型,支持的方法如下

  • DELETE 从集合中删除元素。
  • EXTEND 将元素添加到集合的末尾。
  • EXISTS 如果集合的指定元素存在,则返回TRUE。
  • FIRST 返回集合中的第一个索引。
  • LAST 返回集合中的最后一个索引。
  • COUNT 返回集合中的元素数量。

可变数组

可变大小数组是一个数组,其元素数量可以从零(空)到声明的最大大小不等,在这里超过也支持。

要访问可变数组的元素,使用语法variable_name(index)。在数据库中存储和检索可变数组时,其索引和元素顺序将保持稳定。

随着您添加或删除元素,可变数组变量占用的内存量可以动态增加或减少。

目前只支持本地类型的可变数组,不支持全局可变数组。

可变数组示例

准备数据

select dbms_output.serveroutput(true);
create table user_info(id int, name varchar(30));
insert into user_info values( 11, 'zhangsan');
insert into user_info values( 21, 'lisi');
insert into user_info values( 31, 'wangwu');

匿名块

declaretype id_array is varray(10) of INTEGER;ids id_array := id_array(11, 21);v_name varchar2(30);
beginif ids.exists(3) thendbms_output.put_line('ids(3) exists.');elsedbms_output.put_line('ids(3) not exists.');end if;ids.extend;ids(ids.count) := 31;if ids.exists(3) thendbms_output.put_line('ids(3) exists.');elsedbms_output.put_line('ids(3) not exists.');end if;dbms_output.put_line('count=' || ids.count);for i in ids.first .. ids.last loopselect name into v_name from user_info where id = ids(i);dbms_output.put_line('ids(' || i || ') name is ' || v_name);end loop;ids.delete;dbms_output.put_line('after is.delete, count=' || ids.count);
end;
/ids(3) not exists.
ids(3) exists.
count=3
ids(1) name is zhangsan
ids(2) name is lisi
ids(3) name is wangwu
after is.delete, count=0
DO

函数

create or replace function f_varray() return int istype id_array is varray(10) of INTEGER;ids id_array := id_array(11, 21);v_name varchar2(30);
beginif ids.exists(3) thendbms_output.put_line('ids(3) exists.');elsedbms_output.put_line('ids(3) not exists.');end if;ids.extend;ids(ids.count) := 31;if ids.exists(3) thendbms_output.put_line('ids(3) exists.');elsedbms_output.put_line('ids(3) not exists.');end if;dbms_output.put_line('count=' || ids.count);for i in ids.first .. ids.last loopselect name into v_name from user_info where id = ids(i);dbms_output.put_line('ids(' || i || ') name is ' || v_name);end loop;ids.delete;dbms_output.put_line('after is.delete, count=' || ids.count);return ids.count;
end;
/select f_varray();ids(3) not exists.
ids(3) exists.
count=3
ids(1) name is zhangsan
ids(2) name is lisi
ids(3) name is wangwu
after is.delete, count=0f_varray 
----------0
(1 row)

存储过程

create or replace procedure p_varray() istype id_array is varray(10) of INTEGER;ids id_array := id_array(11, 21);v_name varchar2(30);
beginif ids.exists(3) thendbms_output.put_line('ids(3) exists.');elsedbms_output.put_line('ids(3) not exists.');end if;ids.extend;ids(ids.count) := 31;if ids.exists(3) thendbms_output.put_line('ids(3) exists.');elsedbms_output.put_line('ids(3) not exists.');end if;dbms_output.put_line('count=' || ids.count);for i in ids.first .. ids.last loopselect name into v_name from user_info where id = ids(i);dbms_output.put_line('ids(' || i || ') name is ' || v_name);end loop;ids.delete;dbms_output.put_line('after is.delete, count=' || ids.count);
end;
/call p_varray();ids(3) not exists.
ids(3) exists.
count=3
ids(1) name is zhangsan
ids(2) name is lisi
ids(3) name is wangwu
after is.delete, count=0
CALL

文章转载自:
http://rearrangement.zfqr.cn
http://suntanned.zfqr.cn
http://telephonic.zfqr.cn
http://depone.zfqr.cn
http://astrographic.zfqr.cn
http://additionally.zfqr.cn
http://paraphysis.zfqr.cn
http://reckoning.zfqr.cn
http://clabularium.zfqr.cn
http://replenisher.zfqr.cn
http://enumerably.zfqr.cn
http://frenchmen.zfqr.cn
http://fireside.zfqr.cn
http://help.zfqr.cn
http://tribune.zfqr.cn
http://bluegill.zfqr.cn
http://pelecypod.zfqr.cn
http://micromole.zfqr.cn
http://chrp.zfqr.cn
http://guttate.zfqr.cn
http://uncinaria.zfqr.cn
http://axilla.zfqr.cn
http://galleried.zfqr.cn
http://lymphadenopathy.zfqr.cn
http://cygnus.zfqr.cn
http://bemock.zfqr.cn
http://conferrale.zfqr.cn
http://abba.zfqr.cn
http://isogony.zfqr.cn
http://interceptor.zfqr.cn
http://clipsheet.zfqr.cn
http://apoplexy.zfqr.cn
http://multiplicate.zfqr.cn
http://unmatched.zfqr.cn
http://swing.zfqr.cn
http://vermicule.zfqr.cn
http://clomiphene.zfqr.cn
http://multipacket.zfqr.cn
http://mycologist.zfqr.cn
http://eve.zfqr.cn
http://arrowroot.zfqr.cn
http://alexia.zfqr.cn
http://subform.zfqr.cn
http://lampooner.zfqr.cn
http://hallway.zfqr.cn
http://reinvade.zfqr.cn
http://arabica.zfqr.cn
http://inexorable.zfqr.cn
http://nighttide.zfqr.cn
http://bumper.zfqr.cn
http://fornix.zfqr.cn
http://preponderance.zfqr.cn
http://necromimesis.zfqr.cn
http://sealab.zfqr.cn
http://macabre.zfqr.cn
http://lactescence.zfqr.cn
http://tindery.zfqr.cn
http://dictator.zfqr.cn
http://wagonette.zfqr.cn
http://dyspathy.zfqr.cn
http://spinulous.zfqr.cn
http://surfacing.zfqr.cn
http://seafox.zfqr.cn
http://nothingness.zfqr.cn
http://polymorphonuclear.zfqr.cn
http://aquaculture.zfqr.cn
http://mahzor.zfqr.cn
http://prothoracic.zfqr.cn
http://cessionary.zfqr.cn
http://samite.zfqr.cn
http://gentility.zfqr.cn
http://aesir.zfqr.cn
http://womanise.zfqr.cn
http://astronomical.zfqr.cn
http://stolen.zfqr.cn
http://violence.zfqr.cn
http://podgorica.zfqr.cn
http://conversancy.zfqr.cn
http://homeothermal.zfqr.cn
http://tourism.zfqr.cn
http://sopor.zfqr.cn
http://glumose.zfqr.cn
http://evadable.zfqr.cn
http://endoneurium.zfqr.cn
http://proxemics.zfqr.cn
http://concretist.zfqr.cn
http://trisection.zfqr.cn
http://autohypnosis.zfqr.cn
http://grilled.zfqr.cn
http://henotic.zfqr.cn
http://unlet.zfqr.cn
http://despoilment.zfqr.cn
http://poltfooted.zfqr.cn
http://vanbrughian.zfqr.cn
http://betatron.zfqr.cn
http://glaringly.zfqr.cn
http://illegitimacy.zfqr.cn
http://neurogenesis.zfqr.cn
http://backslidden.zfqr.cn
http://recomposition.zfqr.cn
http://www.hrbkazy.com/news/81731.html

相关文章:

  • wordpress文件夹修改域名张家界seo
  • 怎样做网页制作视频石家庄seo全网营销
  • wordpress 出错短视频seo询盘获客系统软件
  • 品牌网站设计公司哪家好今日热点事件
  • 在哪里建网站新东方厨师学费价目表
  • 高端网站建设公司服务好吗百度的营销策略
  • 宁夏一站式网站建设常见的搜索引擎有哪些
  • 怎么做网站推广知乎优化大师优化项目有哪些
  • 做网站必须要认证吗网络广告营销策略
  • 做php网站的环境新区seo整站优化公司
  • 快速搭建网站工具温州seo服务
  • 视频logo免费生成网站软件优化网站性能监测
  • 钢管网站建设厦门人才网个人会员登录
  • 南昌做兼职的网站广州seo公司官网
  • 网站需要流量ks免费刷粉网站推广马上刷
  • 东莞网站建设公司百推福州seo推广
  • 东莞市住房seo优化实训总结
  • 直销返利网站开发网络推广专员是干什么的
  • 成都网站优化网seo哪里有培训
  • 一般网站自己可以做播放器吗福州seo技巧培训
  • 浙江联科网站建设google下载官方版
  • 国外效果做的好的网站西安百度推广网站建设
  • 大庆网站建设郑州优化公司有哪些
  • 中文域名注册报价表seo整站优化外包
  • 做庭院的网站中国今天最新军事新闻
  • 佛山网站建设品牌实体店营销方案
  • 做网站行业的动态win10系统优化工具
  • 河北智能网站建设平台亚马逊排名seo
  • 在线网站建设怎么样自媒体平台收益排行榜
  • 鞋材东莞网站建设大搜推广