Question : using same variable name multiple times

generally, is it safe to keep reusing same variable other contexts.

for example

declare abc number;
begin
........
code #1
end;
declare abc number;
begin
........
code #2
end;

will the end of the first block refresh/clear out the variable abc and keep it usable for the second round? is this good programming practice?

thanks

Answer : using same variable name multiple times

Hi,
Yes, the two variables are in different blocks, so they are different.
Regards,
Franck.
Random Solutions  
 
programming4us programming4us