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
发布时间: 2012-08-02 11:35:26 作者: rapoo
asp中怎么把以前发布的数据的时间更新为现在的时间
我是新手,求帮忙?
[解决办法]
这个一条SQL语句就可以搞定啊
[解决办法]
string time=DateTime.Now.tostring(); string strSql = "update 表名 set time='"+time+"' where id=xxx";
[解决办法]
update 表名 set time=getdate() where id=xxx