Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple bind variable error

Status
Not open for further replies.

raygg

Technical User
Jun 14, 2000
397
US
Why am I getting this error? What has to be changed?

SQL> declare
2 pi constant number(9,7) := 3.1415927;
3 area number (14,2);
4 cursor rad_cursor is
5 select * from radius_vals;
6 rad_val rad_cursor%ROWTYPE;
7 begin
8 open rad_cursor;
9 fetch rad_cursor into rad_val;
10 area =: pi*power(rad_val.radius,2);
11 insert into areas values (rad_val.radius, area);
12 close rad_cursor;
13 end;
14 /
SP2-0552: Bind variable "PI" not declared.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top