mysql 查看当前事务

SELECT tx.trx_id

FROM information_schema.innodb_trx tx

WHERE tx.trx_mysql_thread_id = connection_id();

原文地址:https://www.cnblogs.com/hd92/p/14851212.html