更新表中受影响的行,其中有一列是记录时间的,要求每次更新都要把更新时间覆盖该列。
各列如下
新闻标题 作者 内容 更新时间要求更新内容的时候更新时间

解决方案 »

  1.   

    update xxxx set xxxx where xxx
      

  2.   

    update table set yourtime=getdate()
      

  3.   

    更新语句里面直接把 更新时间设置为当前时间update T_Student set UpdateTime=GETDATE()
      

  4.   

    更新数据的时候顺便把那一行更新一下就完事了呗~~~~~~(多更新个字段而已么)update table set a='a',b='b' where ....换成update table set a='a',b='b',DateTime=getdate() where ....