PDO and binding multiple value sets during insert - recently
问题 Using PDO in PHP, when having to insert multiple rows into a table at once, I've used sql that looks something like this: INSERT INTO some_names (firstName, lastName) VALUES ('Joe', 'Smith'),('Fred','Sampson'),('Lisa','Pearce'); As you can see I'm inserting three rows with one statement. The reason I do this is that I believe it is more efficient than executing three distinct statements to insert the rows. So my question is this: how do I do this in PHP if I want to be able to bind my values