日期:2014-05-16  浏览次数:21008 次

sql更新问题
update   [M_use]   set   M_log_num=(select   count(id)   from   [M_log]   where   M_useid= "&session( "M_login_useid ")& ")   where     id= "&session( "M_login_useid ")
请问这句哪里有错吖??

------解决方案--------------------
JET SQL不支持这种写法
在ACCESS中
update [M_use] set M_log_num=dcount( "id ", "[M_log] ", "M_useid= & session( "M_login_useid ")) where id= " & session( "M_login_useid ")
否则生成临时表,再替换