- 论坛徽章:
- 0
|
有两个表 sys_navigation 和 sys_power
在这两表上我建立了这样一个存储过程
( userid in number,
ugtype in number,
tmove out sys_navigation.tmove%TYPE,
xh out sys_navigation.xh%TYPE,
windowname out sys_navigation.windowname%TYPE,
tname out sys_navigation.tname%TYPE,
bmpname out sys_navigation.bmpname%TYPE,
selectedbmpname out sys_navigation.selectedbmpname%TYPE,
selected out sys_navigation.selected%TYPE,
mopen out sys_navigation.mopen%TYPE,
opened out sys_navigation.opened%TYPE,
children out sys_navigation.children%TYPE,
siblings out sys_navigation.siblings%TYPE,
tlevel out sys_navigation.tlevel%TYPE,
powertype out sys_power.powertype%TYPE
)
as
begin
select sys_navigation.tmove,
sys_navigation.xh,
sys_navigation.windowname,
sys_navigation.tname,
sys_navigation.bmpname,
sys_navigation.selectedbmpname,
sys_navigation.selected,
sys_navigation.mopen,
sys_navigation.opened,
sys_navigation.children,
sys_navigation.siblings,
sys_navigation.tlevel,
sys_power.powertype
into
tmove,
xh,
windowname,
tname,
bmpname,
selectedbmpname,
selected,
mopen,
opened,
children,
siblings,
tlevel,
powertype
from sys_navigation,sys_power
where ( sys_power.navigationxh = sys_navigation.xh) and ((sys_power.userorgroupid = userid) and (sys_power.ugtype = ugtype))
and ( sys_power.powertype <> 0) and (sys_navigation.syscode in (select sys_runconfig.currentsyscode from sys_runconfig));
end;
在PB中建立以该存储过程为数据源的数据窗口,按理论来说该数据窗口应该只要提供 2 个 in 参数就可以了,但在建数据窗口时候必须把所有参数(包括out),请教高手,如何只要提供这两个 in 参数就可以? |
|