首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

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

2012-02-27 
!!!!!!!update语句更新数据库问题?大家看看问题出在那里?我想要更新USER表里的alogouttime和atotaltime,运

!!!!!!!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 ")& " ' ")

热点排行