I have a column that contains string. It is a number but saved as string. The string might start with 00 or more than two zeros. I need to remove the zeros and insert the new value (after removing) into another column. The problem is the number of zeros at the beginning is not fixed. It can be 2 or more. Is this task possible to be done with MySQL ? How?
Share
A good hint is provided here:
supposing that the original value is stored in
column1and you want to write the 0-trimmed one incolumn2