我有一個觸發(更新之前)在這樣一個表:如何處理觸發器中的碰撞問題?
UPDATE contact_us SET updated_at = unix_timestamp() WHERE id = new.id
當我通過使用phpMyAdmin更新表中的行,它拋出這個錯誤:
爲了看得更清楚:
#1442 - Can't update table 'contact_us' in stored function/trigger because it is already used by statement which invoked this stored function/trigger.
我怎樣才能修復問題?
所有的
也許顯示觸發呢? – FMashiro
@FMashiro [你去](https://i.stack.imgur.com/QW9Bv.png) – stack
顯示存儲過程? – Ravi