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

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

WBOY
WBOYOriginal
2016-06-13 12:35:22841browse

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
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