in reply to Re^2: Caching and inserting big number of records
in thread Caching and inserting big number of records

No - you have to put in the ? unfortunately. You could minimise it to:
$sql = 'insert into my_table (x,y,z) values ' . join (',', ('values (' . join(',',('?') x $rows) . ')') x $colum +ns )