N
N
ninja op op2020-05-25 13:48:59
MySQL
ninja op op, 2020-05-25 13:48:59

Why is MySQL returning Truncated incorrect DOUBLE value: '|546674311'?

There is the following query:
`UPDATE \`promo\` SET \`users_id\`=\`users_id\`+'|${mes.senderId}' WHERE \`code\` = '${promo.text}'`

` promo` - `users_id` table
- LONGTEXT column
`code` - TEXT column
mes.senderId = 546674311

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2020-05-25
@kur4chyt

Because |546674311 is not a valid real number for the mathematical operation of addition. If you wanted to merge strings rather than add, then there is the CONCAT () function for this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question