Skip to content
Advertisement

SQL UPDATE all values in a field with appended string CONCAT not working

Here is what I want to do:

current table:

Mystery Query ( something like "UPDATE table SET data = CONCAT(data, 'a')" )

resulting table:

thats it! I just need to do it in a single query, but can’t seem to find a way. I am using mySQL on bluehost (I think its version 4.1)

Thanks everyone.

Advertisement

Answer

That’s pretty much all you need:

Not sure why you’d be having trouble, though I am testing this on 5.1.41

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement