日期:2014-05-17  浏览次数:20576 次

数据库update语句问题
update 表名 set 列名=一段字符串+表id+字符串怎么写

------解决方案--------------------
update 表名 set 列名='一段字符串'+表id+'字符串';
------解决方案--------------------
hehe, #1 楼好幽默 :)

应该用 CONCAT() 吧?……
------解决方案--------------------
探讨

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;
------解决方案--------------------
探讨

update winiis_c_fileaq set pageup='../aq/1207/index_'+cast(c_id-1 as varchar(20))+'.html'
我自己写出来了