我的代码很长,所以我会让它变得简单。 我有以下几点:是否有任何解决方案为MYSQL错误代码:1442?
table1 --> have a trigger on insert (call function1 to insert into table2)
table2 --> have a trigger on insert (call function2)
function2()
update table1 depending on a query that table1 is related to.
和我得到,因为它已经被用于通过调用这个语句错误不能在存储函数/触发更新表table1 ....
那么,有没有解决方案或解决方法...
你是说table2上的触发器将记录插入到table1中? – 2012-01-15 18:42:44
不,它正在运行一个函数来更新table1 – 2012-01-15 18:57:24
当实际代码很大时(实际上,只要您发布代码),您总是可以生成一个[minimal sample case](http://sscce.org/)的模糊图。 – outis 2012-01-16 01:21:30