D
D
Danny Arty2021-02-11 10:47:05
SQL
Danny Arty, 2021-02-11 10:47:05

Why does this error occur during sql query?

Hello!

I'm trying to add the word Europe to the end of each pagetitle column from the modx_site_content table .

My query is:

UPDATE modx_site_content SET pagetitle = pagetitle + '  Европа'
WHERE (template='4' AND published='1')


Mistake:
#1292 - Truncated incorrect DOUBLE value: 'Труба профильная 15*15*0,9 мм'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-02-11
@DanArst

Because you are performing an arithmetic addition operation on text values.
To concatenate text strings, there is the CONCAT() function.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question