MariaDB社区

标题: 求救,怎么在SQL数据库"字段"中追加数据,但不覆盖原有数据! [打印本页]

作者: ahua_huang    时间: 2010-3-4 23:21
标题: 求救,怎么在SQL数据库"字段"中追加数据,但不覆盖原有数据!
如: 数据库名:sdu  表名:qclass  字段:his
原有his字段内容是 "good class"  现在想把内容" every body"写入此字段 ,
写入后,内容显示"good class every body"  怎样实现呢?
作者: kider    时间: 2010-3-5 10:22
供参考:
update qclass set his=concat(his,' every body') where ...
作者: piao.xiong    时间: 2010-9-13 16:50
使用contact函数解决!




欢迎光临 MariaDB社区 (http://123.56.88.72/) Powered by Discuz! X3.2