Call start transaction; not really started after the transaction

 

 

A window B window

SELECT * FROM information_schema.INNODB_TRX;

Empty set (0.00 sec)

  
 

start transaction;

(begin;)

SELECT * FROM information_schema.INNODB_TRX;

Empty set (0.00 sec)

 
  select * from tpa;

SELECT * FROM information_schema.INNODB_TRX \G

(Data !!)

 
 

rollback;

(commit;)

SELECT * FROM information_schema.INNODB_TRX;

Empty set (0.00 sec)

 

Guess you like

Origin www.cnblogs.com/tsing0520/p/11579113.html