Home > Backend Development > PHP Tutorial > SQL语句求指导,该如何解决

SQL语句求指导,该如何解决

WBOY
Release: 2016-06-13 11:37:29
Original
1004 people have browsed it

SQL语句求指导
表名: table1 
字段: id value(数字加逗号/多少个数字不确定)
内容A: 1   3,5
内容B: 2   3,3
内容C: 3   3,4,5
内容D: 4   5,3,6
我要实现的就是 查找 对应id 将value字段中的3 替换为4 只替换一个

最终要实现的效果
内容A: 1   4,5
内容B: 2   4,3
内容C: 3   4,4,5
内容D: 4   5,4,6

sql语句:

sql php mysql
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template