mysql 查看当前事务

SELECT tx.trx_id

FROM information_schema.innodb_trx tx

WHERE tx.trx_mysql_thread_id = connection_id();

 

posted @ 2021-06-04 20:08  larybird  阅读(359)  评论(0)    收藏  举报