当前位置: 代码迷 >> ASP >> !update语句更新数据库有关问题?大家看看有关问题出在那里
  详细解决方案

!update语句更新数据库有关问题?大家看看有关问题出在那里

热度:233   发布时间:2012-02-27 10:00:22.0
!!!!!!!update语句更新数据库问题?大家看看问题出在那里?
我想要更新USER表里的alogouttime和atotaltime,运行页面时没有提示错,但这两个字段却没有更新,看了半天也不知道是那写错了;大家帮忙看看问题在那?谢谢!
conn.execute( "update   User   set   alogouttime= "&now()& ",atotaltime=atotaltime   +   "&datedIff( "n ",session( "starttimes "),Now())& "   where   username= ' "&session( "username ")& " ' ")

------解决方案--------------------
conn.execute( "update [User] set alogouttime= ' "&now()& " ',atotaltime=atotaltime + "&datedIff( "n ",session( "starttimes "),Now())& " where username= ' "&session( "username ")& " ' ")
  相关解决方案