mysql数据删除lock_Mysql InnoDB 数据更新/删除导致锁表

本文分析了在对账表T_CGW_CKJNL进行并发删除操作时出现死锁的现象,原因是没有针对删除条件的字段建立索引。解决方案是为字段chk_typ, cnl_code, cnl_plt_cd添加索引,从而实现行级锁,避免表级锁造成的死锁。" 83999783,7265610,Qt QPropertyAnimation 动画改变控件尺寸问题解析,"['Qt开发', '动画框架', 'GUI编程']
摘要由CSDN通过智能技术生成

一. 如下对账表数据结构

create tablet_cgw_ckjnl

(

CNL_CODEvarchar(10) default ‘ ‘ not null comment ‘通道编码‘,

CNL_PLT_CDvarchar(32) default ‘ ‘ not null comment ‘通道平台号‘,

CNL_TYPvarchar(10) default ‘ ‘ not null comment ‘通道类型‘,

CHK_BAT_NOvarchar(32) default ‘ ‘ not null comment ‘对账批次号‘,

BAT_NOvarchar(32) default ‘ ‘ not null comment ‘交易批次号‘,

SEQ_NOvarchar(8) default ‘ ‘ not null comment ‘批次序列号‘,

CHK_ORD_NOvarchar(64) default ‘ ‘ not null comment ‘对账订单号‘,

CHK_TYPvarchar(10) default ‘ ‘ not null comment ‘对账类型‘,

CHK_MODvarchar(2) default ‘ ‘ not null comment ‘对账方式(预留:通道订单号、交易批次号+通道订单号、交易批次号+批次序列号)‘,

CHK_DTvarchar(8) default ‘ ‘ not null comment ‘对账日期‘,

CHK_TMvarchar(6) default ‘ ‘ not null comment ‘对账时间‘,

CHK_STSvarchar(1) default ‘0‘ not null comment ‘对账状态‘,

REQ_DTvarchar(8) default ‘0‘ not null comment ‘交易请求日期‘,

IIF_TY

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值