- 论坛徽章:
- 0
|
cursor C_CURSOR is
SELECT A.PNAME, A.BIRTHDAY,A.CARD, TO_CHAR(A.BIRTHDAY,'YYYY') AS BYEAR,
TO_CHAR(A.BIRTHDAY,'MM') AS BMONTH , TO_CHAR(A.BIRTHDAY, 'DD') AS BDAY,
(TO_CHAR(SYSDATE,'YYYY'))- TO_CHAR(A.BIRTHDAY,'YYYY') AS AGE, B.PAY
FROM ADMIN.ASSOCIATOR A, BASIC_PENSION B
WHERE TO_CHAR(SYSDATE,'YYYY') - TO_CHAR(A.BIRTHDAY,'YYYY') >= B.STARTAGE
AND TO_CHAR(SYSDATE,'YYYY') - TO_CHAR(A.BIRTHDAY,'YYYY') < B.ENDAGE
AND A.BOON = 1
ORDER BY A.KIND_ID ASC, (A.FAMILIAL_ID) ASC, A.PEOPLE_ID ASC;
在存储过程中,出现如下错误,哪位大虾给看看是怎么回事??在SQL窗口执行无误的
错误:PL/SQL: ORA-06552: PL/SQL:Compilation unit analysis terminated
ORA-06553: PLS-320: 此表达式的类型说明不完整或格式不正确
[ 本帖最后由 大脚王 于 2007-1-25 09:33 编辑 ] |
|