The common way is to use UPDATE:
UPDATE eskalera.curriculum SET nomecompleto = CONCAT(nome,' ',sobrenome);
Thus this query will be able to make the change in all table records in a single transaction. But for this it is necessary to be with the protection against unwanted updates throughout the disabled table:
SET SQL_SAFE_UPDATES=0;
Then we would have:
SET SQL_SAFE_UPDATES=0;
UPDATE eskalera.curriculum SET nomecompleto = CONCAT(nome,' ',sobrenome);
At the end, it would be interesting to activate the protection again:
SET SQL_SAFE_UPDATES=1;
Thus protection against unwanted updates at once throughout the table is reactivated.
You’re missing a WHERE there, no?
– Ingrid Farabulini
@Ingridfarabulini precisely my doubt because the query is for all records as it would be correct to solve the problem?
– IvanFloripa