下订单时出现以下错误
SQLSTATE [HY000]:常规错误:1137无法重新打开表:'catalog_product_index_price_temp',查询为:INSERT INTO catalog_product_index_price_temp
SELECT e
。entity_id
,cg
。customer_group_id
,cw
。website_id
,IF(MIN(i.tax_class_id)IS NULL,0,MIN(i.tax_class_id))AS tax_class_id
,NULL AS {{ 1}},NULL AS price
,MIN(IF(le.required_options = 0,i.min_price,0))AS final_price
,MAX(IF(le.required_options = 0,i.max_price, 0))AS min_price
,NULL AS max_price
来自tier_price
AS catalog_product_entity
左联接e
AS catalog_product_link
ON e.row_id = l.product_id AND l.link_type_id = 3交叉联接l
为customer_group
交叉联接cg
为store_website
内联接cw
为store_group
在csg.group_id上= cw.default_group_id INNER JOIN csg
AS store
ON cs.store_id = csg.default_store_id INNER JOIN cs
AS catalog_product_website
ON pw.product_id = e.entity_id和pw.website_id = cw.website_id在LE.ENTITY_ID = l.linked_product_id和(LE.created_in <='1527833968'AND le.updated_in>'1527833968')上以pw
的身份catalog_product_entity
左加入le
AS catalog_product_index_price_temp
为ON,i.entity_id = l.linked_product_id和i.website_id = cw.website_id和i.cust omer_group_id = cg.customer_group_id WHERE(e.type_id ='sermons')AND(e.entity_id IN(15611))AND(e.created_in <='1527833968')AND(e.updated_in>'1527833968')GROUP BY {{ 1}}。i
,e
。entity_id
,cg
。customer_group_id
进行重复密钥更新cw
=值(website_id
),tax_class_id
= VALUES(tax_class_id
,price
= VALUES(price
),final_price
= VALUES(final_price
),{{1 }} = VALUES(min_price
),min_price
= VALUES(max_price
)。
其他一些产品也会出现相同的错误。