Good Afternoon
I would like to know how to concatenate 11 digits in the form of a CPF. Type, format for a CNPJ, I did this:
update ger_ter set cpfcgc = CONCAT(SUBSTRING(cpfcgc, 1,2), '.', SUBSTRING(cpfcgc,3,3), '.', SUBSTRING(cpfcgc,6,3), '/', SUBSTRING(cpfcgc,9,4), '-', SUBSTRING(cpfcgc,13, 2))
where length(cpfcgc) =14 and pessoa=1;
I just can not 'get' this same idea and leave it to CPF format. I'm already tapping here. Thanks.