My query in this opportunity is to know if it is possible to make a UPDATE to a database from MySQL where the existing value in the database is only added a letter
My query is as follows:
$query = "UPDATE pedidos SET
status_pedido = '$status',
motivo_rechazo = '$motivo',
fecha_rechazo = '$fecha_act'
WHERE id = '$id'";
Within the orders table there is a parameter called nro_trans and it is an index or a secondary key and I would like to give an example to the existing data, adding the letter R indicative of rejection.
Existing data = 123456
Updated Data = R123456
I would like to know if there is a way to do it directly in my query or do I have to make a second query to retrieve that data beforehand?