To put it in a nutshell – In an oracle db, I want to make a column varchar2(16) which is now varchar2(8), without affecting the values presnet. I have already tried this and it does weird things.
The query I tried was – alter table SOME_TABLE modify (SOME_COL varchar2(16));
But the values(some not all) already present in the table get
‘\0’ appended to them when I run the above query.
So, what is the right way of doing what I want?
The command you are executing is correct.
Are you sure the additional characters you are seeing are not already present?