我的SQL查询有什么问题?

far*_*oft 1 mysql sql

我的SQL查询有什么问题?

UPDATE template SET template = template . "hello"
Run Code Online (Sandbox Code Playgroud)

Bra*_*tie 6

MySQL中的连接使用了+我相信,而不是.(那是php).或者,您可以使用CONCAT:

UPDATE template SET template=CONCAT(template,'hello');
Run Code Online (Sandbox Code Playgroud)