I have the following table Computers
I want to replace only the department column with a text string.
And I am using the following query:
UPDATE computers SET departamento = REPLACE (departamento, (1), "Administración");
UPDATE computers SET departamento = REPLACE (departamento, (2), "Contabilidad");
Where if the value of the department is 1 , it replaces it with " Administration ", if it is 2 , it replaces it with "< strong> Accounting ".
Up there, all right.
The problem comes when I have 11 in the department, and replaces it with " AdministracionAdministracion ", or has 12 , and replaces it with " AdministrationAccount ".
I try the following:
UPDATE computers SET departamento = REPLACE (departamento, (11), "Call Center 2");
UPDATE computers SET departamento = REPLACE (departamento, (12), "Call Center 3");
But it does not work: (