帮忙,急!!!!sql执行错误 # 1093 .从数据库的响应:
update c_visitor set pv_num=pv_num+1
where id=(select max(id)
from c_visitor
where c_info_id =1
and curUrl='http://127.0.0.1:8081/hboys');
我想更新c_visitor,根据 c_info_id =1 and curUrl='http://127.0.0.1:8081/hboys' 的条件,可是报错
sql执行错误 # 1093 .从数据库的响应:
you can't specify target table 'c_visitor; for update in from clause
如果我单独执行,是可以的
但是我想合并到一起
不知道怎么办
请各位高手指点