Hi All,
Can any one help me out by providing some examples for
Batch upload/Insert row-wise
For example
$sth = $dbh->prepare(insert into table values (?, ?, ?));
@array1 = ( 1, 2, 3 ) # array that contains the values of column1 acro
+ss all the rows.
@array2 = ( 1, 2, 3 ) # array that contains the values of column2 acro
+ss all the rows.
@array3 = ( 1, 2, 3 ) # array that contains the values of column3 acro
+ss all the rows.
$sth->execute_array({}, \@array1, \@array2, \@array3);
This code will do the batch load column-wise
it will insert all records in the array to the DB.
Any idea on how can I do the batch load row-wise insted of column-wise...?