0
点赞
收藏
分享

微信扫一扫

循环插入数据库

小飞侠熙熙 2022-04-14 阅读 156
javamysql
	insert into xx()
	VALUES
	<foreach collection="list" item="item" separator=",">
		()
	</foreach>
<foreach collection="list" item="item" separator=";">
	insert into xx ()
	values
	<foreach collection="item.list" item="it" separator=",">
		()
	</foreach>
</foreach>
举报

相关推荐

0 条评论