备注字段的宽度不够,设置为nvarchar(4000)吧

解决方案 »

  1.   

    set xact_abort on
    begin tran
    update b set 备注=isnull(b.备注,'')+'2004年学生'+ b.姓名+'荣获国际围棋冠军'
    where 学号='033104001'

    update a set 备注=isnull(a.备注,'')+'2004年学生'+ b.姓名+'荣获国际围棋冠军'
    from 系信息表 a,学生信息表 b
    where b.学号='033104001'
    and a.系号=b.系号
    commit tran
      

  2.   

    set xact_abort on
    begin tran
    update 学生信息表 set 学生备注=isnull(学生备注,'')+'2004年学生'+ 姓名+'荣获国际围棋冠军'
    where 学号='033104001'

    update 系信息表 set 系简介=isnull(a.系简介,'')+'2004年学生'+ b.姓名+'荣获国际围棋冠军'
    from 系信息表 a,学生信息表 b
    where b.学号='033104001'
    and a.系号=b.系号
    commit tran这样就搞定了