通过RedBean批量插入mysql [英] Batch insert into mysql by RedBean

查看:91
本文介绍了通过RedBean批量插入mysql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过 RedBean 运行以下sql?

How to run following sql by RedBean?

INSERT INTO tbl_name (a,b,c) VALUES(1,2,3),(4,5,6),(7,8,9);

我应该使用循环还是RedBean支持批量插入?

Should I use loop or RedBean support batch insert?

推荐答案

RedBeanPHP的创建者.

Creator of RedBeanPHP here.

RedBeanPHP不支持此功能. 为此,您将不得不使用普通的旧SQL.

This is not supported by RedBeanPHP. You will have to use plain old SQL for this.

这篇关于通过RedBean批量插入mysql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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