views:

373

answers:

1

I've got an after insert trigger that works good.

However, I want it to delete the row after it's been inserted and after the main body of the trigger completes.

How can I do that?

I have a unique id in the table.

+1  A: 

this isn't possible. you can't modify the target table with an AFTER trigger.

longneck
A feature that is missing from MySQL, for certain. MSSQL, Oracle, DB2, PostgreSQL all support this. http://forums.mysql.com/read.php?99,122354,249709#msg-249709
Haim Evgi