CREATE OR REPLACE PROCEDURE OnyardContainer (p_CurTitle OUT SYS_REFCURSOR, OWN_CONTAINER IN VARCHAR2, p_IsDesignMode IN VARCHAR2 DEFAULT 'N') AS BEGIN OPEN p_CurTitle FOR SELECT * FROM(SELECT nvl(B.CONTAINEROWNER,'zzzz$') AS CONTAINEROWNER, --船公司 nvl(B.INAIM,'zzzz$') AS INAIM, --船期别名 SYSDATE AS CURRTIME --统计时间 FROM CM_CONTAINERS B WHERE B.CONTAINEROWNER =OWN_CONTAINER AND p_IsDesignMode='N'); END;