当我运行那个sql
时insert into usersHistoryEvents(date,str,type, userid)
(select now(),'hello', 'test', users.userId from gamesvidUsers, users
WHERE gamesvidUsers.userid=users.userId and paid=1)
我收到了这个错误:
#1442 - Can't update table 'users' in stored function/trigger because it is already used by statement which invoked this stored function/trigger.
有什么想法吗?