oracle 存储过程复习

Oracle 复习版(类型包括很全面) 这个吧,应付山农期末考试,除了选择题需要看好课件。理解外,其余大题简答基本类型都涵盖。期末刚考完,很全面。 其余学校不了解。 喵喵喵,前人栽树后人乘凉。老学姐爱你们~(我不是学长!) Oracle的后台进程主要包括: (1)DBWR 数据库写入进程:负责将数据库缓冲区内变动过的数据块写回磁盘内的数据文件,DBWR可有多个。 2)LGWR 日志文件写入进程: 负责将重做日志缓... 阅读详情

CREATE OR REPLACE PROCEDURE "GETCODE" (EN in varchar2,EC OUT INTEGER) is
  t_count integer;
FID INTEGER;
a integer;
begin
  select count(*) into t_count from APP_GETCODE where FENTITYNAME=EN;
  if t_count>0 then
    begin

      Select FENTITYCODE into EC From APP_GETCODE Where FENTITYNAME=EN;
      Update APP_GETCODE Set FENTITYCODE = FENTITYCODE+1 Where FENTITYNAME=EN;

    end;
  else
    begin
      EC :=1;
        select count(*) into FID from app_getcode;
        if FID=0  then
              begin
              Insert into APP_GETCODE(FPRIMARYKEY,FENTITYNAME,FENTITYCODE) Values(1,EN,2);
              end;
        else
              begin
              select max(FPRIMARYKEY) INTO a FROM APP_GETCODE;
              Insert into APP_GETCODE(FPRIMARYKEY,FENTITYNAME,FENTITYCODE) Values(a+1,EN,2);
              end;
        end if;

    end;
  end if;

  commit;

  exception
    when others then
      rollback;
end GETCODE;

--初始化时删除表数据
create or replace procedure InitTable(tablename in varchar2) is
row_count integer;
tname varchar2(50);
strsql varchar2(250);
begin
tname:=tablename;
strsql := 'select count(*) from ' || tname;
execute immediate strsql into row_count;
if(row_count>0) then
 strsql := 'delete from ' || tname;
 execute immediate strsql;
end if;
end InitTable;

begin
inittable('SYSPERSON');
end;
--输出select count(*) from SYSPERSON
-- 00

--初始化系统管理员信息
create or replace procedure InitAdmin
is
tempid number;
did number;--部门当前id
pid number;--人员当前id
rid number;--角色当前id
urid number;--用户角色关联id
mid number;--模块当前id
rmid number;--角色模块关联id
begin
--清空相关表
inittable('rolelegalpower');
inittable('sysmodules');
inittable('app_userandrole');
inittable('sysrole');
inittable('sysperson');
inittable('app_department');
--获取自增主键
getcode('APP_DEPARTMENT',did);
getcode('SYSPERSON',pid);
getcode('APP_USERANDROLE',urid);
getcode('sysrole',rid);
getcode('sysmodules',mid);
getcode('rolelegalpower',rmid);
--插入系统管理员角色
insert into sysrole(fid,fname,fremark,ftype) values(rid,'系统管理员','','其他');
--插入系统模块和系统管理员权限
insert into sysmodules(fid,fname,parent,sequ,descp,moduletype,assemblyname,classname,range,param) values(mid,'系统维护',0,0,'',0,'','','','');
insert into rolelegalpower(fid,froleid,fmoduleid) values(rmid,rid,mid);
tempid:=mid;
getcode('sysmodules',mid);
getcode('rolelegalpower',rmid);
insert into sysmodules(fid,fname,parent,sequ,descp,moduletype,assemblyname,classname,range,param) values(mid,'组织管理',tempid,0,'',3,'Com.Jointown.BasisSet.dll','Com.Jointown.BasisSet.Win.DepartmentForm','','');
insert into rolelegalpower(fid,froleid,fmoduleid) values(rmid,rid,mid);
getcode('sysmodules',mid);
getcode('rolelegalpower',rmid);
insert into sysmodules(fid,fname,parent,sequ,descp,moduletype,assemblyname,classname,range,param) values(mid,'用户管理',tempid,0,'',3,'Com.Jointown.MainGui.exe','Com.Jointown.MainGui.Modules.CzyManageForm','公司','');
insert into rolelegalpower(fid,froleid,fmoduleid) values(rmid,rid,mid);
getcode('sysmodules',mid);
getcode('rolelegalpower',rmid);
insert into sysmodules(fid,fname,parent,sequ,descp,moduletype,assemblyname,classname,range,param) values(mid,'角色管理',tempid,0,'',3,'Com.Jointown.MainGui.exe','Com.Jointown.MainGui.Modules.RoleForm','','');
insert into rolelegalpower(fid,froleid,fmoduleid) values(rmid,rid,mid);
getcode('sysmodules',mid);
getcode('rolelegalpower',rmid);
insert into sysmodules(fid,fname,parent,sequ,descp,moduletype,assemblyname,classname,range,param) values(mid,'计算机MAC信息管理',tempid,0,'',3,'Com.Jointown.MainGui.exe','Com.Jointown.MainGui.Modules.NetAddress','部门','');
insert into rolelegalpower(fid,froleid,fmoduleid) values(rmid,rid,mid);
--插入组织信息
insert into app_department(fpkid,ffkid,departmentname,departmentcode,zjm,state,parentdepartment,parentdepartmentcode,type,departdescription,operator,operatortime,departmenttype,searchcode,indexs)
values(did,0,'九州通医药集团股份有限公司','DBM00000031','JZTJT','启用','九州通集团','0','公司','九州通医药集团股份有限公司','admin',sysdate,'非业务','01.01','');
tempid := did;
getcode('APP_DEPARTMENT',did);
insert into app_department(fpkid,ffkid,departmentname,departmentcode,zjm,state,parentdepartment,parentdepartmentcode,type,departdescription,operator,operatortime,departmenttype,searchcode,indexs)
values(did,0,'湖北九州通达科技开发有限公司','DBM00001034','kjgs','启用','',tempid,'公司','','admin',sysdate,'非业务','01.01','');
tempid := did;
getcode('APP_DEPARTMENT',did);
insert into app_department(fpkid,ffkid,departmentname,departmentcode,zjm,state,parentdepartment,parentdepartmentcode,type,departdescription,operator,operatortime,departmenttype,searchcode,indexs)
values(did,0,'供应链事业部','DBM00001036','gylsyb','启用','湖北九州通达科技开发公司',tempid,'部门','','admin',sysdate,'非业务','01.01','');
--插入人员用户信息
insert into sysperson(fid,fname,floginname,forganizeid,fpassword,fdesc,fisactive,post,personcode,departmentcode,companycode,zjm,state,headdepassess)
values(pid,'系统管理员','admin',did,'111111','',1,'研发工程师','ZIY00022668','DBM00001036','DBM00001034','xtgly',0,'');
--插入用户角色关联信息
insert into app_userandrole(userid,roleid,fid)
values(pid,rid,urid);
commit;
  exception
    when others then
      rollback;
end InitAdmin;

 

 

select * from sysrole
select * from sysperson
select * from app_department
select * from app_userandrole
select * from sysmodules
select * from rolelegalpower

从零到一:FAST_LIO与FAST_LIO2算法环境搭建与实战评测 本文详细介绍了FAST_LIO与FAST_LIO2算法的环境搭建与实战评测,包括算法原理、环境配置避坑指南、源码编译技巧及性能对比。FAST_LIO2凭借ikd-tree数据结构在动态环境中表现优异,处理速度提升至15ms,内存占用降低40%。文章还提供了常见问题排查和进阶优化技巧,助力开发者高效实现SLAM应用。 阅读详情

相关推荐

AI脸部替换Roop-Unleashed,一键整合包教程

Roop-Unleashed是一个无须训练模型的深度伪造工具,专为图像和视频的面部替换而设计。它通过简洁的浏览器界面提供用户友好且跨平台的使用体验,无论用户是业余爱好者还是专业人士,都能快速上手。它无需复杂的设置即可实现高效的处理和转换,使图像和视频的编辑变得更加轻松和便捷。

m0_72580657的博客 1万+

API实现批次序列号的销售出库

转:http://blog.csdn.net/shishun123/article/details/5836525       随着制造企业对生产销售的控制越来越高,越来越多的制造型企业增加了对物料的批次、序列号的控制。我们可以在库存职责中的:物料 –> 主组织物料/组织产品 -> 库存TAB页:来这只某个库存组织中是否启用序列或者是批次。              启用物料的批次

zhanzhibo的专栏 3301

【CubeMX】STM32G474 HRTIM 互补PWM与死区时间配置实战

本文详细介绍了如何使用STM32CubeMX配置STM32G474的高分辨率定时器HRTIM生成互补PWM波形并精确设置死区时间。通过实战步骤讲解时钟配置、死区计算与高级功能,帮助工程师在电机驱动和电源应用中实现精准控制,避免上下桥臂直通风险。

grpc6streamer的博客 732

oracle函数fun_get,oracle的函数

函数语法:create or replace function function_name(argu1 datatype,argu2 datatype...)return datatypeis|asPL/SQL Block;自定义函数调用限制1、SQL语句中只能调用存储函数(服务器端),而不能调用客户端的函数函数必须是保存在数据库中。一个在客户端的PL/SQL环境中定义的函数没有办法在SQL中使...

weixin_34526937的博客 4032

从Jira到Notion:用Sequential Thinking重构你的敏捷工作流(含GPT-6配置模板)

本文探讨了如何利用Sequential Thinking这一AI认知模型,重构敏捷开发工作流。通过连接Jira、Notion等工具,构建动态依赖图谱,实现从被动响应到主动规划的转变。文章提供了详细的配置教程和GPT-6配置模板,帮助团队实现任务自动拆解、智能看板生成与跨平台协调,从而提升项目管理效率。

gpt4scribbler的博客 209

【个人记录】CentOS7升级glibc至2.28

由于CentOS7系统已经停止支持, 虽然大部分业务已经迁移至OpenEuler,但仍然有部分业务系统跑在CentOS7上。在尝试部署新业务环境时经常会提示如下错误(以code-server运行需要的node 20为例)node -v为了保障业务可正常运行,通常采用Docker继承好的node环境进行部署,但部分场景还是需要宿主机使用新版glibc版本。本文记录本人一次成功升级glibc(2.17=>2.28)的步骤。

喵呜 3895

oraclecode常用语句大全

--查询当前数据库名称 10 v$database 10 --查询所有表空间的名称 10 dba_tablespaces 10 --创建永久表空间 10 create tablespace 10 datafile 10 size 10 autoextend on 10 next 10 maxsize 10 --创建临时表空间 10 create temporary tabl

qq_40026782的博客 6180

无人机蜂群作战设计技术详解

构建防御网络,拦截敌方无人机或导弹;无人机蜂群作战设计技术是一种创新的军事应用概念,它基于生物仿生学原理,通过先进的通信技术、自主导航与决策算法,将大量小型、低成本、功能各异的无人机组织成一个高度协同的群体,以执行复杂多样的军事任务。无人机蜂群作战的概念源于自然界中蜜蜂、蚂蚁等生物群体的行为模式,这些生物群体通过简单的个体间的信息交互和分工协作,能够完成远远超出单一个体能力的复杂任务。其中,无人机群体是执行任务的主体,指挥控制系统负责任务分配和决策,通信数据链则保障无人机群体与指挥控制系统之间的信息交换。

专注多旋翼、复合翼无人机技术研究,从事低空经济行业。 2224

oracle函数 code实例

CREATE OR REPLACE FUNCTION gettaxcycle ( [color=red] vv02 IN vv02_accounts_tin%ROWTYPE, returnoption IN NUMBER[/color] ) RETURN NUMBER AS tr12rec ...

暗里着迷 586

CentOS 7.9安装python3.11

CentOS 7.9安装python3.11

leafseelight的专栏 1347

第1章:认识OpenClaw

OpenClaw是一个开源的 AI 智能体 Gateway 网关项目名称演变:OpenClaw 原名 Clawdbot,因 Anthropic 商标顾虑在 2026年1月27日更名为 Moltbot(过渡名),最终在1月30日确定为 OpenClaw。三个名字本质是同一个项目,功能完全一致。🏠在你的电脑上运行:完全本地部署,数据隐私有保障📁访问本地文件:可以搜索、读取、编辑你电脑上的文件🔌扩展能力:通过Skills(技能)系统无限扩展功能💬多平台使用。

Maynor的博客 2846

马德拉岛深度游:加强酒、水渠徒步与火山岛美食全攻略

在葡萄牙语中,Madeira意为“木头”,同时指代一座火山群岛、一种加强葡萄酒和一种木材,三者共享同一个名字却各有故事。加强酒是葡萄酒酿造中通过添加烈酒终止发酵、保留糖分与酒精度的技术,而马德拉酒更因大航海时代海上高温运输的偶然氧化,形成了标志性的焦糖、坚果与咸鲜风味。这种“热陈化”工艺,让马德拉酒开瓶后耐放数周,成为配餐与烹饪的独特选择。同样由火山与立体气候塑造的,还有岛上的莱瓦达水渠系统——一条条沿山壁修筑的引水步道,串联起云雾森林、瀑布与峡谷,成为徒步爱好者探索岛貌的经典路线。无论是品鉴从干型到甜型的

weixin_33874713的博客 365

【Python_PySide6学习笔记(二十四)】菜单栏QMenuBar类的基本用法

此篇文章中介绍 PySide6 中 QMenuBar 类的基本用法,包括"创建菜单栏"、"创建一级菜单"、"创建二级菜单"等,会持续更新,有需要的读者可以点赞收藏,也欢迎在评论区进行讨论。

禾戊之昂的博客 1629

oracle存储过程case写法,oracle 存储过程语法小结及相关写法复习 if、case、loop等...

当前位置:我的异常网» 数据库»oracle 存储过程语法小结及相关写法复习 if、case、oracle 存储过程语法小结及相关写法复习 if、case、loop等www.myexceptions.net网友分享于:2013-03-27浏览:301次oracle 存储过程语法总结及相关写法复习 if、case、loop等--1.存储过程之ifclear;create or repla...

weixin_32767301的博客 584

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

oracle 存储过程语法总结及相关写法复习 if、case、loop等

--1.存储过程之if clear; create or replace procedure mydel( in_a in integer) as begin if in_a

handle520的博客 904

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

全面复习之SQL(8)-oracle存储过程

存储过程   1  CREATE OR REPLACE PROCEDURE 存储过程名   2  IS   3  BEGIN   4  NULL;   5  END;   行1:   CREATE OR REPLACE PROCEDURE 是一个SQL语句通知Oracle数据库去创建一个叫做skeleton存储过程, 如果存在就覆盖它; 行2:

末路狂奔》》》》 480

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

DM为什么和Oracle语法向通,《21天学通Oracle》ORACLE期末复习纲要

ORACLE期末复习纲要一.考试注意事项考试形式:考查课闭卷考考试题型:选择,填空,简答,判断,案例(综合题的形式,涉及的知识点为:创建用户,分配权限,模式的创建,约束的设置,创建视图,创建函数,存储过程)二.ORACLE各章节复习纲要第一章1.数据:是数据库的最基本的存储对象。2.数据库:是数据存储的仓库。3.数据库管理系统:是用于管理数据库的工具。4.常见的数据库对象:用户,表,索引,视图,函...

weixin_39629188的博客 150

Oracle存储过程的部分知识复习(待续)

&lt;div class="iteye-blog-content-contain" style="font-size: 14px"&gt;&lt;/div&gt; 一。execute immediate, using create or replace procedure Test(sid IN NUMBER, sname IN varchar2,age IN NUMBER,addr I...

WangandShang的博客 123

存储过程不能将值传回调用的主程序_oracle复习资料

第2章数据查询阶段练习1.SQL语言中用来创建、删除及修改数据库对象的部分被称为:B A. 数据库控制语言(DCL) B. 数据库定义语言(DDL) C. 数据库操纵语言(DML) D. 数据库事务处理语言 2.执行以下查询,表头的显示为:CSELECT sal \A. EMPLOYEE SALARY B. employee salaryC. Employee SalaryD. \3...

weixin_42131414的博客 455

Oracle数据库期末考试范围题

学校Oracle数据库期末考试复习题题目收录,是自己学习Oracle数据库的笔记。

weixin_44229243的博客 1万+

Oracle存储过程(增、删、改)写法

  工作上也没什么事情,一天都琐碎的事,空闲时间比较多,自己可以随意安排。   分析目前的形式,发现自己要学的东西真是太多了,都不知道要学什么好,例如:数据库、开发技术、管理……这些技术东西,一天一天都在更新,要想跟得上脚步,估计要把自己累趴下,还是要把自己善于的方面做好,做精也就差不多了。   好久都没有写过Oracle存储过程了,一般写查询语句比较多,自己就试着写了一下插入、删除、修改记录...

weixin_34405557的博客 236

oracle商品当日销售排行,Oracle 1-6章复习试题

Oracle 1-6章复习试题(电子商务网站)第一部分1.创建一个函数fun_sal,该函数根据部门号获得该部门下所有员工的平均工资2.创建一个动态游标,根据部门编号查询该部门下员工所有信息。3 创建一个存储过程,根据该员工的编号,查询该员工的工资,如果该工资少于2000.把工资提高到2000.4 显示在一个月为30天的情况所有员工的日薪金,忽略余数Select sal+nvl(comm,0) f...

weixin_33272141的博客 193

Oracle 记一次sql优化(有关子查询和关联查询)

最近同事有条查询sql,需要做下优化。其实最后得出的结论,就是关联查询速度快于子查询 写这篇的目的主要是把尝试过的方法给记录下,同时复习下有一段时间没有用过的oracle存储过程、自定义函数、包的写法 一、问题说明 为了说清楚问题的核心,我把跟业务逻辑有关的东西去掉了,简单说下需要查的东西: 表结构: 现在需要查询各班级下的所有学生的名称(两个字段:班级id classId,学...

u010999809的博客 4351

存储过程

存储过程执行简单的增删查改sql oracle 1.存储过程增加的sql 首先写一个增加的存储过程 create or replace procedure (test_procedure_name存储过程名) (id char,name varchar) as begin insert into (test_table_name表名) values(id,name); commit; //不要忘记...

m0_37935175的博客 143

Oracle复习

 Oracle明天就考试了,今日一定好好复习。话说考试范围是这样:5个编程题 1、创建用户 2、创建表  3、创建视图(会使用到外连接、组函数、很有可能靠递归树) 4、读/写 匿名PL/SQL 5、写存储过程,触发器,函数 /* *let's go 1 */ >使用system账号登录sqlplus在sqlplus中创建招投标账号,并给招投标用户授权 CREATE USE

最爱雨的博客 672
上一篇: js 常用类
下一篇: js 五子棋(无ai,仅判断胜负)
andycode
博客等级 码龄17年 12粉丝 80原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址