应用与数据集成平台 ROMA Connect-存储过程调用:数据源说明
时间:2025-02-12 14:55:43
数据源说明
假设数据库里面有一张表,表结构如下建表语句所示:
create table sp_test(id number,name varchar2(50),sal number);
往表中并插入数据,数据集如下表所示:
ID |
NAME |
SAL |
---|---|---|
1 |
ZHANG |
5000 |
2 |
LI |
6000 |
3 |
ZHAO |
7000 |
4 |
WANG |
8000 |
在Oracle数据库中调用存储过程,根据name查询sal的值。
create or replace procedure APICTEST.sb_test(nname in varchar, nsal out number) asbeginselect sal into nsal from sp_test where name = nname;end;
support.huaweicloud.com/devg-roma/roma_04_2004.html