您好!
mysql批量更新或批量插入,canal生成的消息只有一条;请问能通过设置生成多条吗?
如,一次插入多条数据insert into exam.canal_test(name) values ('232323232'),('ttttttt'),('ooooooo'); 那么生成1条消息(如下),请问能通过设置,生成3条消息吗?谢谢 :{"data":[{"id":"15","name":"23232323222222","create_time":"2022-03-05 22:41:53","update_time":"2022-03-05 22:41:53"},{"id":"16","name":"ttttttt2222","create_time":"2022-03-05 22:41:53","update_time":"2022-03-05 22:41:53"},{"id":"17","name":"ooooooo222","create_time":"2022-03-05 22:41:53","update_time":"2022-03-05 22:41:53"}],"database":"exam","es":1646491313000,"id":2,"isDdl":false,"mysqlType":{"id":"int unsigned","name":"VARCHAR(100)","create_time":"TIMESTAMP","update_time":"TIMESTAMP"},"old":null,"pkNames":["id"],"sql":"","sqlType":{"id":4,"name":12,"create_time":93,"update_time":93},"table":"canal_test","ts":1646491313273,"type":"INSERT"}
原提问者GitHub用户cwh2008
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。