我的 sql 查询有什么问题? [英] What is the problem with my sql query?

查看:31
本文介绍了我的 sql 查询有什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 sql 查询有什么问题?

What is the problem with my sql query ?

UPDATE template SET template = template . "hello"

推荐答案

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

Concatenation in MySQL uses a + i believe, not a . (that's php). Alternatively, you could use CONCAT:

UPDATE template SET template=CONCAT(template,'hello');

这篇关于我的 sql 查询有什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆