what is the difference between variable and Define
WHAT IS THE DIFFERENCE BETWEEN
these different declarations when it is done using the keyword "variable" and "define"
and both of these are done OUTSIDE "DECLARE"
VARIABLE g_monthly_sal NUMBER
DEFINE p_annual_sal =5000
-- I understand that p_annual_sal will be taken as a CHAR.
-- ALSO IF DEFINE variable acts as macro variable, SO is it necessary to give it some value whenever we define it.
if not what value would be substituted for it?
OR does that mean whenever we want to specify data type for a bind varible we should use VARIABLE and
when we do not want to specify type we use DEFINE?
THANK YOU
Edited by: user6287828 on Feb 24, 2009 11:03 AM
Edited by: user6287828 on Feb 24, 2009 11:04 AM