为什么这段代码要花这么长时间,所以我在mysql中遇到超时错误?

时间:2019-06-25 15:53:17

标签: timeout

我是sql的新手。我有此代码和此错误:

  

ER_LOCK_WAIT_TIMEOUT:超过了锁定等待超时;尝试重新启动事务。

我该如何解决?

CREATE TABLE receipt_of_payments (
  card VARCHAR(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (card),
  amount varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL
);
DROP TABLE receipt_of_payments;

INSERT INTO receipt_of_paymentS (card, amount) VALUES
(6362144270562676, 26305800),
(6362144270585123, 27805200),
(6362144270596138, 25367400),
(6362144270507986, 27417600),
(6362144270571198, 24174000),
(61621442270506525, 28702800),
(6362144270562643, 26520000),
(6362144270521052, 28723200),
(6362144270562585, 26040600),
(6362144270562577, 26418000), 
(6362144270562569, 26693400),
(6362144270514420, 27070800),
(6362144270551729, 24571800),
(6362144270516649, 27713400),
(6362144270507358, 28855800),
(6362144270506558, 29284200),
(6362144270551729, 26683200),
(6362144270521029, 28815000),
(6362144270562593, 26856600),
(6362144270529634, 27030000),
(6362144270562601, 25163400),
(6362144270592731, 40851600);

0 个答案:

没有答案