This should solve your problem. Use the length () operator as shown below. This will give the exact character length in the specified column. This will also take NULL values into account , NULL will be evaluated to 0 :
select length(Empid || Ename || Age || DOB || Salary)
from mytable
where id = someId;
source
share