SELECT TO_CHAR( SYSDATE,‘MM-dd‘) AS beginTime,TO_CHAR( TO_DATE(MAX(C.SUBSCRIBE_DATE),‘YYYY-MM-dd‘),‘MM-dd‘) AS endTime from TableName
时间: 2024-10-18 11:37:37
SELECT TO_CHAR( SYSDATE,‘MM-dd‘) AS beginTime,TO_CHAR( TO_DATE(MAX(C.SUBSCRIBE_DATE),‘YYYY-MM-dd‘),‘MM-dd‘) AS endTime from TableName