在单个查询中保存多个行 [英] Saving multiple rows in a single query

查看:136
本文介绍了在单个查询中保存多个行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有反正有蛋糕做一个多行插入在单个查询,而无需编写原始SQL这样做? saveMany和saveAssociated选项只会在单个事务中保存多个行,但是该事务包含多个insert语句,因此这些方法显然不是编写繁重应用程序的解决方案。

Is there anyway to have cake do a multi-row insert in a single query without writing raw SQL to do this? The saveMany and saveAssociated options will only save multiple rows in a single transaction, but that transaction contains multiple insert statements so these methods are clearly not a solution to write heavy applications.

感谢您阅读。

推荐答案

有人指出我的大数据行为 https://github.com/jmillerdesign/CakePHP_Big_Data

Someone pointed me towards the Big Data Behavior https://github.com/jmillerdesign/CakePHP_Big_Data

这篇关于在单个查询中保存多个行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆