当前位置: 代码迷 >> ASP.NET >> asp中如何把以前发布的数据的时间更新为现在的时间
  详细解决方案

asp中如何把以前发布的数据的时间更新为现在的时间

热度:2294   发布时间:2013-02-25 00:00:00.0
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
  相关解决方案