11
锁总数超过锁表大小
我正在MySQL中运行报告。查询之一涉及将大量行插入到临时表中。当我尝试运行它时,出现以下错误: 错误代码1206:锁的数量超过了锁表的大小。 有问题的查询是: create temporary table SkusBought( customerNum int(11), sku int(11), typedesc char(25), key `customerNum` (customerNum) )ENGINE=InnoDB DEFAULT CHARSET=latin1; insert into skusBought select t1.* from (select customer, sku, typedesc from transactiondatatransit where (cat = 150 or cat = 151) AND daysfrom07jan1 > 731 group by customer, sku union select customer, …