1
I have a chart in my comic book called contas
. Where I log all system accounts.
As soon as they get paid I perform a update
changing her status. However, I send a single update to several accounts, as follows:
update contas
set status='0',
valor_recebido='aqui preciso capturar o campo valor'
where id IN ($ids)
So far so good, but in the field valor_recebido
I need to capture the value of the field valor
from the same table conta
.
Does anyone know if this is possible?
I perform a update
and at the same time assign the value of a table field to another field?
It’s not just changing
valor_recebido=seuCampo
?– Marconi
Seriously though it’s that simple, pqp didn’t know, vlw even
– Hugo Borges
worked out here even vlw hahahahah
– Hugo Borges
Glad I could help. : ). rsrs
– Marconi
put that as an answer there for me to mark as accepted
– Hugo Borges
Marconcílio posted one, accepts his :)
– Marconi