Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Mamad_Ch's avatar

Save multiple records with one query

Hello friends, how can I insert many records in the database using a query and then have all the IDs?

0 likes
1 reply
Sinnbeck's avatar

You cannot. If you need all the ID's, then you need to insert them one at a time.

Please or to participate in this conversation.