I have a number
field with lenght of 10 bytes. If i store this lenght into another field that is of datatype VarChar2
. How do I calculate the lenght of VarChar2
?.
Some state that I can just declare it as VarChar2(MAX)
as it does not matter - saying that if I was to store the word '999'
into VarChar(100) and VarChar(1000) the same amount of space would be allocated.
What is the correct way to go about this?