mysql - bulk insert in zend framework -


possible duplicate:
how add more 1 row zend_db?

everyone,

i need have bulk insert in zend framework. normal sql have below query, want same in zend framework.

insert `dbname`.'tablename` (`id`, `user_id`, `screen_name`, `screen_name_server`) values (null, '15', 'test', 'test'), (null, '15', 'test', 'test'); 

thanks.

there's no way this, marcin states.

if you'd messing around zend framework you'd try alter insert.

you try make insert method can take array of arrays data. use arrays of data build bulk insert.

for example,

   $data1 = array( ); //data first insert  $data2 = array( ); //data 2nd insert  //a zend_db_table object  $dbtable->insert( array( $data1, $data, ) );   

you have edit insert method bit detect multiple data inserts , build insert accordingly. unfortunately haven't looked how code built or put here use.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -