Search code examples
phpredbean

Batch insert into mysql by RedBean


How to run following sql by RedBean?

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

Should I use loop or RedBean support batch insert?


Solution

  • Creator of RedBeanPHP here.

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