死锁复现
CREATE TABLE t (id int(11) NOT NULL,c int(11) DEFAULT NULL,d int(11) DEFAULT NULL,PRIMARY KEY (id),KEY c (c)
) ENGINEInnoDB DEFAULT CHARSETutf8;/*Data for the table t */insert into t(id,c,d) values (0,0,0),(5,5,5),(10,10,10)
事务1事务2T1START …
1.创建一个数据表
DROP TABLE IF EXISTS txzh_token_price;
CREATE TABLE txzh_token_price (id int(11) NOT NULL AUTO_INCREMENT,token_ids varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 币种id,symbol varchar(255) CHARACT…