Home > Database > Mysql Tutorial > Oracle中对一个表中的数据和输入的参数对比,做出对应的操作(存储过程)

Oracle中对一个表中的数据和输入的参数对比,做出对应的操作(存储过程)

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:16:12
Original
973 people have browsed it

Oracle中对一个表中的数据和输入的参数对比,做出对应的操作(存储过程),如果table表a字段有大于x的纪录y个,那么向A表插入y条a字

Oracle中对一个表中的数据和输入的参数对比,做出对应的操作(存储过程)

[日期:2012-07-13] 来源:Linux社区  作者:szstephenzhou [字体:]

Oracle一个表中对应输入的数据对比做出想对应的操作

表table有一个number字段的a
存储过程test有一个变量x。\

如果table表a字段有大于x的纪录y个,那么向A表插入y条a字段等于x的纪录
如果a字段没有大于x的纪录,则a字段全部加100。

好了直接上测试数据

linux

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template