Reputation: 23989
Is there a way to retrieve a transaction ID inside a MySQL trigger?
Upvotes: 5
Views: 1664
Reputation: 95153
Currently, no. It's been an open request for four years. However, you can use connection_id()
which will give the connection session, so you can group things by that.
Upvotes: 6