Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> pl/sql help.....again
hello,
I have created a series of tables.......as part of that I am trying to create a pl/sql script...that will take some information from one table....manipulate it and insert it into another table....
The calculation always equals zero...what am i doing wrong?
here is my pl/sql script...
DECLARE
CURSOR c_MILEAGE_CAL IS
SELECT EMPLO_ID, NUM_MILES, MIL_ALLOWANCE, ENTRY_DATE, DESCR
FROM MILE_LOG;
V_EMPLOID MILE_LOG.EMPLO_ID%TYPE :=20029; V_NUM_MILES MILE_LOG.NUM_MILES%TYPE; V_CENTSPERMILE MILE_LOG.MIL_ALLOWANCE%TYPE; V_DATE DATE; V_DESCR MILE_LOG.DESCR%TYPE; V_REFUND NUMBER(6);
![]() |
![]() |