我尝试使用以下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时。有什么想法吗?