insert into select 堵塞update

      mysql[192.168.5.15]   blocking_thread[2286333] blocking_query[insert into temp_zhuyou_mktact_1(hotel_group_code,hotel_code,product_type,rsv_date,set_num)
      SELECT hotel_group_code,hotel_code,product_type,rsv_date,SUM(set_num) st_num 
              FROM web_product_detail  
              WHERE rsv_date >=  NAME_CONST('arg_begin_date',_binary'2016-11-25' COLLATE 'binary') and rsv_date <=  NAME_CONST('arg_end_date',_binary'2016-11-26' COLLATE 'binary') AND is_closed = 'F'
      GROUP BY hotel_group_code,hotel_code,product_type,rsv_date
      order by hotel_group_code,hotel_code,product_type,rsv_date] blocking waiting_thread[2286305]'s update web_product_detail set hotel_group_code='ZHUYOUG', hotel_code='CNBJBJB290', product_type='CNBJBJB290_WEB_10', product_code='CNBJBJB290_WEB_10_SWSC', rsv_date='2016-11-26 00:00:00', set_num=50, sale_num=2, hold_num=0, sold_num=0, sold_hold_num=0, real_price=169.00, cost_price=169.00, ori_price=169.00, base_price=169.00, is_closed='T', activity_config=null, activity_config_descript=null, activity_config_type=null, create_user='ADMIN', create_datetime='2015-10-10 14:16:17', modify_user='ADMIN', modify_datetime='2016-11-25 09:10:12' where id=24987119

posted @ 2016-11-25 09:20  czcb  阅读(190)  评论(0编辑  收藏  举报