Hey devs, I'm interested in retrieving the row IDs automatically generated for each of these records:
For example, in MySQL, the auto incrementing value would be in columnA.
In PHP, I would use $pdo->lastInsertId() if I only inserted one record, but I believe with the above statement being executed, it will not work.
Code:
INSERT INTO myTable ( columnB, columnC, columnD ) SELECT hur, derp, hurderp UNION ALL SELECT hur2, derp2, hurderp2 UNION SELECT ALL hur3, derp3, hurderp3
For example, in MySQL, the auto incrementing value would be in columnA.
In PHP, I would use $pdo->lastInsertId() if I only inserted one record, but I believe with the above statement being executed, it will not work.