我希望使用Oracle11g中的存储过程获得以下查询的输出 您不需要存储过程来获取此查询的输出-您实际需要该过程做什么? select username,expiry_date,sysdate,FLOOR(expiry_date-sysdate) as "

我希望使用Oracle11g中的存储过程获得以下查询的输出 您不需要存储过程来获取此查询的输出-您实际需要该过程做什么? select username,expiry_date,sysdate,FLOOR(expiry_date-sysdate) as ",oracle,select,procedure,Oracle,Select,Procedure,我希望使用Oracle11g中的存储过程获得以下查询的输出 您不需要存储过程来获取此查询的输出-您实际需要该过程做什么? select username,expiry_date,sysdate,FLOOR(expiry_date-sysdate) as "days left" from dba_users where username in ( 'ABCD', 'TSTL', 'HDO', 'LOTER', 'SMB', 'UStR', 'N3P', 'FA

我希望使用Oracle11g中的存储过程获得以下查询的输出
您不需要存储过程来获取此查询的输出-您实际需要该过程做什么?
select username,expiry_date,sysdate,FLOOR(expiry_date-sysdate) as "days left"
from dba_users
where username in ( 'ABCD',   'TSTL',    'HDO',    'LOTER',
  'SMB',    'UStR',    'N3P',    'FADT',    'FRE',    'VMSV',    'CHATY',
  'PBKMIN',    'LMSROD',    'UKPSPREPROD')
order by expiry_date;
create or replace procedure XXX(p_rs out sys_refcursor)
as
begin

  open p_rs for
    select ......

end;