JawwadLone
Programmer
Hello everybody,
I am trying to solve one problem from many days but i am unable. Problem is that I am writting a procedure in oracle and want to convert the datatype of variable from varchar(20) to number in the oracle procedure. My varible can have different values, number as well as characters that is why i have declared the variable as varchar(20). Now i have to see if the value in the variable is > 14 or less then 14 then execute a query otherwise go for some other queries.
This V_AS_UNIT is varchar(20) type variable. I would be very greatfull if someone can give me the solution.
Regards,
Jawwad Lone.
I am trying to solve one problem from many days but i am unable. Problem is that I am writting a procedure in oracle and want to convert the datatype of variable from varchar(20) to number in the oracle procedure. My varible can have different values, number as well as characters that is why i have declared the variable as varchar(20). Now i have to see if the value in the variable is > 14 or less then 14 then execute a query otherwise go for some other queries.
Code:
if V_AS_UNIT>14 then
--Insert Statements
else
--Select Statements
end if;
This V_AS_UNIT is varchar(20) type variable. I would be very greatfull if someone can give me the solution.
Regards,
Jawwad Lone.