thunguo opened a new issue, #1130:
URL: https://github.com/apache/incubator-seata-go/issues/1130

   ### ✅ 验证清单
   
   - [x] 🔍 我已经搜索过 [现有 
Issues](https://github.com/apache/incubator-seata-go/issues),确信这不是重复请求
   - [x] 📋 我已经查看了 
[发布说明](https://github.com/apache/incubator-seata-go/releases),确信此功能尚未实现
   - [ ] 🛠️ 我愿意自己处理这个议题
   
   ### 🎯 功能描述
   
   MySQL 支持通过一条 INSERT 语句插入多行,即多值形式:`INSERT INTO t (a,b) VALUES (1,2),(3,4)`。AT 
模式目前已经支持该模式的一部分(能够提取所有行的主键值,并针对单一自增主键列,通过 `LAST_INSERT_ID` + 
`auto_increment_increment` 推算出各行的自增主键值)。但在该多值 INSERT 形式下,其他主键场景的支持还不完整,尤其是:
   - 复合(多列)主键;
   - 部分主键列显式赋值、部分需要自动生成的混合场景。
   
   本 Issue 希望完善多值 INSERT VALUES 的支持,使所有主键配置下,每一行都能正确构建前/后镜像与回滚日志。
   
   ### 📋 使用场景
   
   - 应用为提升效率而构造单条多值 INSERT 语句进行批量插入(常见于数据导入任务、ORM 的批量插入辅助方法);
   - 使用复合主键的表,同时也需要支持高效的批量插入。
   
   ### ⚖️ 复杂性与风险评估
   
   _No response_
   
   ### 🔗 外部依赖
   
   _No response_
   
   ### 📚 附加信息
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to