2
I need to assemble a UPDATE
in a table however, in the value field: '1481126826.2363343', I need this number to turn '1481126826.2363344'
To query
that I’m trying and the next :
UPDATE callcenter.chamada_agente
SET uniqueid = SUM('1481126826.2363343' + 1)
WHERE id_chamada_agente = 32408
AND tipo_chamada = 'MANUAL'
AND datahora_inicio BETWEEN '2016-11-01 00:00:00' AND '2016-12-15 23:59:59';
Can you help me ?
And what’s the problem? error? or the number becomes a different than expected?
– rray
Syntax error. I’m a beginner with postgresql
– Rafael Calino
Put the error message in the question. See if
SET uniqueid = uniqueid + 1
works– rray
I tried it but it will add up '1481126826 <-- 2363343 '
– Rafael Calino
Have to add in decimal place
– Rafael Calino
And with
.1
in place of1
?– rray
Doesn’t Work I tried here ..
– Rafael Calino
Made a mistake or added wrong?
– rray
Syntax error
– Rafael Calino
Then put
0.1
in place of.1
– Roberto de Campos
Vote today! Vote tomorrow! Vote forever! Vote consciously! Your vote is very important to our community, contribute to us, and help make Stack Overflow in Portuguese (Sopt) bigger and bigger. You can learn more at: Vote early, vote often
– Marcos Henzel