Home  >  Article  >  php教程  >  UPDATE更新语句怎么保留之前的数据

UPDATE更新语句怎么保留之前的数据

WBOY
WBOYOriginal
2016-06-06 19:41:241788browse

UPDATE更新语句如何保留之前的数据? 更新A字段的时候,想要保留原本的数据,而不是全部覆盖。 是文本内容,我不想用先读取,在写入的那种办法。请问应该怎么写UPDATE语句? ------解决思路---------------------- UPDATE`user`SET`a`=concat(`a`,'aaa')WHERE

UPDATE更新语句如何保留之前的数据?
更新A字段的时候,想要保留原本的数据,而不是全部覆盖。
是文本内容,我不想用先读取,在写入的那种办法。请问应该怎么写UPDATE语句?
------解决思路----------------------
UPDATE&【本文来自鸿网互联 (http://www.68idc.cn)】nbsp;`user` SET `a` = concat(`a`,'aaa') WHERE `id` = '10';
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn