I have a database of a client that has some unmasked data for use on my system which is the NCM
;
The same has 8 digits (eg 0000.00.00), but the same in my system is unmasked "00000000" I need to simply put the points 4.2,2 but I am not able to mount an Update to do this .
Using this select
I can see the same with the Masks:
select codigo,substring(d.classificacao_fiscal from 1 for 4)||'.'||
substring(d.classificacao_fiscal from 5 for 2)||'.'||
substring(d.classificacao_fiscal from 7 for 2) as classificacao_fiscal
from c000025 d
But I can not generate an Update to update the data in question;
Remembering that the field NCM
(Varchar 20) is named Classificacao_fiscal
and the Name of the table is c000025
;