数据库update语句问题
update 表名 set 列名=一段字符串+表id+字符串怎么写
——解决方案——————–
update 表名 set 列名=’一段字、本文来源gao($daima.com搞@代@#码$网搞gaodaima代码符串’+表id+’字符串’;
——解决方案——————–
hehe, #1 楼好幽默
应该用 CONCAT() 吧?……
——解决方案——————–
——解决方案——————–
update 表名 set 列名1=’字符串1’,列名2=’字符串2’,列名3=’字符串3’….
——解决方案——————–
update是更改数据操作
——解决方案——————–
后面加上 where ID=‘1’
——解决方案——————–
用 . 连接
——解决方案——————–
他的意思应该是在一个已知ID=‘1’的数据中更新数据
——解决方案——————–
我也不知道
——解决方案——————–
update tablename set name=’.$name.’ where id=1;
——解决方案——————–