从SP Oracle-SQL开发人员处重新获取数据集

时间:2015-07-09 05:06:03

标签: oracle stored-procedures oracle11g oracle-sqldeveloper

我尝试使用以下SP在oracle-sql开发人员中返回数据集。

CREATE OR REPLACE PROCEDURE RPT_TIMESHEET 
(p_recordset OUT SYS_REFCURSOR)
AS 
BEGIN
OPEN p_recordset FOR
SELECT DISTINCT E.EMPID,E.FIRSTNAME,E.SIRNAME,
TO_CHAR(T.CHECKTIME,'DD/MM/YYYY')AS LOGDATE,
( SELECT TO_CHAR(MIN(K.CHECKTIME),'HH24:MI:SS') FROM TIMESHEET K WHERE K.EPFNO = T. EPFNO AND TO_CHAR(K.CHECKTIME, 'DDMMYYYY') = TO_CHAR(T.CHECKTIME, 'DDMMYYYY')) 
AS INTIME,
( SELECT TO_CHAR(MAX(K.CHECKTIME),'HH24:MI:SS') FROM TIMESHEET K WHERE K.EPFNO = T. EPFNO AND TO_CHAR(K.CHECKTIME, 'DDMMYYYY') = TO_CHAR(T.CHECKTIME, 'DDMMYYYY')) 
AS OUTTIME
FROM TIMESHEET T
INNER JOIN EMPLOYEE_OTHER E
ON T.EPFNO = E.EMPID
ORDER BY E.EMPID;
END RPT_TIMESHEET;

但是当执行这个附加的erroe时。有什么想法吗?

enter image description here

1 个答案:

答案 0 :(得分:0)

这似乎是一个错误。

选中此link