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

asp中怎么把以前发布的数据的时间更新为现在的时间
我是新手,求帮忙?

------解决方案--------------------
这个一条SQL语句就可以搞定啊
------解决方案--------------------
C# code

  string time=DateTime.Now.tostring();
  string strSql = "update 表名 set time='"+time+"' where id=xxx";

------解决方案--------------------
update 表名 set time=getdate() where id=xxx