Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi everyone,

i wrote following code in sql plus but encountered error of "bind variable not declared".



VARIABLE fname varchar(20);
begin
         select first_name into :fname from employees where emp_id=1;
end;
/
print fname



Thanks in advance.
Posted
Updated 18-Nov-14 22:10pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900