From: David <ning_1898_at_yahoo.com>
Date: 27 Dec 2003 19:15:25 -0800
Message-ID: <37032184.0312271915.d9d43ef_at_posting.google.com>
Date: 27 Dec 2003 19:15:25 -0800
Message-ID: <37032184.0312271915.d9d43ef_at_posting.google.com>
I am learning plsql. I would like to run a stored procedure to
calculate my bank account value by predicted 10% annual growth rate.
Below is my plsql that is having problems. Your help is highly
appreciated.
Thanks
declare
money number := 50000.00;
year number := 1;
begin for i in 1..17
loop
execute immediate 'insert into my_401k values (':year', 'money + 0.10
year := year + 1;
end loop;
end;
/
SP2-0552: Bind variable "YEAR" not declared.
Any where wrong in this script?
Thanks Received on Sun Dec 28 2003 - 04:15:25 CET