How to bind insert into .. values(),() statement using pdo?

Posted by user198729 on Stack Overflow See other posts from Stack Overflow or by user198729
Published on 2010-03-12T07:40:06Z Indexed on 2010/03/12 7:57 UTC
Read the original article Hit count: 79

Filed under:
|
|

I need to run this statement using pdo:

insert into table(col1,col2) values (v1,v2),(v3,v4)..

The problem here is that the number of values is not fixed,but pdo need the number of ? to match with parameters.

© Stack Overflow or respective owner

Related posts about php

Related posts about pdo