update 表名 set 列名=一段字符串+表id+字符串怎么写

解决方案 »

  1.   

    update 表名 set 列名='一段字符串'+表id+'字符串';
      

  2.   

    hehe, #1 楼好幽默 :)应该用 CONCAT() 吧?……
      

  3.   

    update 表名 set 列名1='字符串1',列名2='字符串2',列名3='字符串3'....
      

  4.   

    比如 update test set s1=   index_1.html   1为ID 
      

  5.   

    后面加上 where ID=‘1’
      

  6.   

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

  7.   

    update tablename set name='.$name.' where id=1;
      

  8.   


    看来他的意思是  字符串的拼接在数据库的使用
    CAST(字段 AS 类型)