golang---mysql执行多行

对于python里面涉及到跟mysql交互,再考虑到性能问题的时候推荐使用executemany进行插入数据,相应的在golang里面也可以,但是不太推荐使用,stackoverflow












the github.com/go-sql-driver/mysql can be configured to accept multiple statements with the multiStatements=true connection parameter.

The documentation clearly states why you should be careful doing it. See https://github.com/go-sql-driver/mysql

转载请注明来源链接 http://just4fun.im/2017/01/07/golang-mysql-e6-89-a7-e8-a1-8c-e5-a4-9a-e8-a1-8c/ 尊重知识,谢谢:)